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

no-jira: Fix double close on <Popover> #185

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

Conversation

ls-jingbo-jin
Copy link

Description

Which problem(s) does it solve and how? What does this PR add?

How to test?

  • Checkout branch, run yarn dev
  • Open Storybook
  • Or check the deploy preview on Netlify (link available in comments)

Checklist

@ls-jingbo-jin ls-jingbo-jin requested a review from a team as a code owner November 9, 2023 05:35
@ls-jingbo-jin ls-jingbo-jin marked this pull request as draft November 12, 2023 22:03
@graypegg
Copy link

graypegg commented Mar 5, 2024

Facing the same issue, but with Dropdown. I think it's related to reactwg/react-18#21 in React 18, since it worked fine for us in 17.

The popper element isn't in the tree when the click outside handler runs, because react is now patiently waiting till the react vdom settles down to write the current DOM state. This means the click handler sees a click happening outside the dom. I think this is why that div ref is required, it's always present on the document.""

CC: @ls-jf-gagnon, is it still possible to make a release of flame from this repo?

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.

None yet

2 participants