trigger icon indicating copy to clipboard operation
trigger copied to clipboard

Multilevel shadowDoms not working as expected, popup closes on click inside target

Open Psvensso opened this issue 7 months ago • 0 comments

When using the trigger inside multi level shadowDoms the "is click inside" functionality is not working as expected. The current implementation inPopupOrChild checks if the click event target is in the popup element. Then checks if the shadow the popup belongs to is the target due to event re-targeting.

This fails when there are multiple levels of shadow so the event has been re-targeted multiple times. This can be fixed by also checking the compostedPath of the event in useWinClick to try to find the actual click event target.

Psvensso avatar Jul 10 '24 08:07 Psvensso