You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- this.wrapper = document.querySelector(this.selector);+ // if selector is a DOM element, use it directly+ if (this.selector instanceof Element) {+ this.wrapper = this.selector;+ } else {+ this.wrapper = document.querySelector(this.selector);+ }
The text was updated successfully, but these errors were encountered:
here is my web component
Juxtapose uses
document.querySelector
which is not available on web components (as they are not found in the document, but their own shadow.I fixed it with the following commit
alifeee/blog@393fd78
The text was updated successfully, but these errors were encountered: