shadydom icon indicating copy to clipboard operation
shadydom copied to clipboard

Click event doesn't bubble when fired using click() function

Open Saulis opened this issue 9 years ago • 1 comments

Not fully sure if this is bug or not, but it's behavior difference between native Shadow and ShadyDOM nevertheless:

When an element inside shadow root is clicked programmatically using click(), the event doesn't bubble all the way to the host element in ShadyDOM although the event has bubbles: true.

On native Shadow, a click listener on the host element always catches clicks within the shadow root, both actual user clicks and click() calls.

See snippet: https://jsfiddle.net/Saulis/dw3kus6g/2/ (try clicking on the "Hello!" label directly first, and then using the button)

Saulis avatar Jun 26 '17 12:06 Saulis

+1, running into same issue

DanDeMicco avatar Jun 30 '17 23:06 DanDeMicco