Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useClickOutside): fix handling in shadow dom #91

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kyletsang
Copy link
Collaborator

Fixes #90

Initial idea for fixing the shadow dom issue. Seems to work ok in React 16-18. Tests fail though because currentEvent is undefined in the test environment and it's triggering the hacky fallback code.

@kyletsang kyletsang marked this pull request as draft August 9, 2023 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overlay immediately closes with rootClose in shadow root
1 participant