We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3630f6 commit 9698f3bCopy full SHA for 9698f3b
index.js
@@ -218,7 +218,7 @@ class MarkdownToolbarElement extends HTMLElement {
218
get field(): ?HTMLTextAreaElement {
219
const id = this.getAttribute('for')
220
if (!id) return
221
- const field = document.getElementById(id)
+ const field = this.getRootNode().getElementById(id)
222
return field instanceof HTMLTextAreaElement ? field : null
223
}
224
0 commit comments