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

Dropdown immediately closes after clicking in rare circumstances #216

Closed
WesCossick opened this issue Nov 25, 2020 · 0 comments · Fixed by #217
Closed

Dropdown immediately closes after clicking in rare circumstances #216

WesCossick opened this issue Nov 25, 2020 · 0 comments · Fixed by #217
Assignees
Labels

Comments

@WesCossick
Copy link
Member

If a portal is present anywhere on a page, and React v17 is being used, then facebook/react#20074 causes the dropdown to immediately close after clicking it.

In essence, the click event listener—which is added by a click—is catching the click event that happened in the past.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant