Closed rikgirbes closed 3 years ago
I can confirm that this works for me and fixes my issue with web components: https://github.com/wakirin/Litepicker/issues/252 💪
@wakirin Is there any chance to merge this fix and release it soon?
+1
@wakirin would be great if this could be merged!
The onclick event is listened to on "document", when the datepicker is added to a shadowDOM element though, the event target would be the shadowDOM and not the datepicker.
By checking for shadowRoot and using composedPath(), everything works as expected.