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
The callback shouldCloseOnInteractOutside in useOverlay sends event.target, in Shadow-DOM context the event.target is Shadow-DOM and not the real point click, so, in this context the result is always click outside.
Could be changed to sends the event and not event.target?
This way we have more information like event.composedPath() and we check the real point click.
I look forward to your feedback.
Regards!
The text was updated successfully, but these errors were encountered:
#1472 has some related discussion. Shadow DOM support is something we are definitely interested in, but we could use some help investigating what else is currently broken and what changes would need to be made to resolve them.
@LFDanLu instead of closing every Shadow DOM related ticket in favour of #1472 I think it might be best to work incrementally and tackle issues one-by-one. #1472 has been around for 2 years and no progress has been made. #4526 addresses this particular issue.
The callback
shouldCloseOnInteractOutside
in useOverlay sendsevent.target
, in Shadow-DOM context theevent.target
is Shadow-DOM and not the real point click, so, in this context the result is always click outside.Could be changed to sends the
event
and notevent.target
?This way we have more information like
event.composedPath()
and we check the real point click.I look forward to your feedback.
Regards!
The text was updated successfully, but these errors were encountered: