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
I have read the template completely before filling it in.
Context
Datepicker not working in shadowroot.
Current Behavior
When a datepicker is loaded in shadowroot, the queryselectors (including getElementById) will fail and cause errors.
Here is a codepen showing the issue: https://codepen.io/Canabale/pen/OJoBRzQ
Expected behavior
Datepickers work exactly the same way, no matter whether you use them in a shadowroot or directly on the document.
Possible Solutions or Causes
There are definately multiple causes.
The biggest issues seem to be the following:
The element queries (querySelector, querySelectorAll, getElementById) are exectued on the document instead of the shadowRoot, which is why elements are not found, resulting in nullreference errors.
When elements are dynamically appended to the dom, they are also appended to the document instead of the shadowRoot.
Before submitting...
Context
Datepicker not working in shadowroot.
Current Behavior
When a datepicker is loaded in shadowroot, the queryselectors (including getElementById) will fail and cause errors.
Here is a codepen showing the issue:
https://codepen.io/Canabale/pen/OJoBRzQ
Expected behavior
Datepickers work exactly the same way, no matter whether you use them in a shadowroot or directly on the document.
Possible Solutions or Causes
There are definately multiple causes.
The biggest issues seem to be the following:
Steps to reproduce
Here is a codepen showing the issue:
https://codepen.io/Canabale/pen/OJoBRzQ
Your Environment
The text was updated successfully, but these errors were encountered: