BUG: goto
(scroll to selected element) broken when no-shadow
enabled
#82
Labels
goto
(scroll to selected element) broken when no-shadow
enabled
#82
Working example:
Broken example
The difference is that
no-shadow
is provided to the<zero-md>
element.Expected behaviour:
go to
https://URL#basic-usage
. Page should scroll to that heading.Actual behaviour
console error:
Environment
I am using Firefox.
Code
The problem is with the
goto
function.zero-md/src/index.js
Lines 151 to 158 in 5a627f2
this.root
does not havegetElementById
ifno-shadow
is true.this.root
is set in theconstructor()
function:zero-md/src/index.js
Line 55 in 5a627f2
The issue appears to be because
getElementById
is only defined on thedocument
object. See MDN web docs.The text was updated successfully, but these errors were encountered: