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.
2 parents fc93ab4 + 3cfd4be commit 4037f4fCopy full SHA for 4037f4f
addon/components/bs-form/element.js
@@ -14,7 +14,8 @@ export default class BsFormElement extends BaseBsFormElement {
14
}
15
16
get controlElement() {
17
- return document.getElementById(this.formElementId);
+ // Start element search from this._element instead of `document`, to support being inside shadow DOM
18
+ return this._element.querySelector(`#${this.formElementId}`);
19
20
21
get errors() {
0 commit comments