diff --git a/src/Element.js b/src/Element.js index adb84edbcb..db18a94611 100644 --- a/src/Element.js +++ b/src/Element.js @@ -406,7 +406,7 @@ export default class Element { inputElement: input, mask, placeholderChar: this.placeholderChar, - shadowRoot: this.root ? this.root.shadowRoot : null + shadowRoot: this.root?.shadowRoot || this?.options.shadowRoot || null }); } catch (e) {