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

Ensure interactability with Popover.Panel contents in static mode #857

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Oct 8, 2021

The "click outside" logic was broken for the Popover.Panel if you used the static mode.
This is because the static mode is used for always rendering the Popover.Panel, even if the Popover itself is not open anymore. This results in a bug that would close the Popover.Panel component itself if the Popover state was Closed (by setting the panel ref to null). But this shouldn't happen since we are using static to keep it open.

Closes: #283

@vercel
Copy link

vercel bot commented Oct 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

headlessui-react – ./packages/@headlessui-react

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-react/6ZH9iV9RYkCGd34YEbUhMaApG8u1
✅ Preview: https://headlessui-react-git-merge-event-listeners-tailwindlabs.vercel.app

headlessui-vue – ./packages/@headlessui-vue

🔍 Inspect: https://vercel.com/tailwindlabs/headlessui-vue/8rQia3JBQX2WoihEbkPMxkHC6tk1
✅ Preview: https://headlessui-vue-git-merge-event-listeners-tailwindlabs.vercel.app

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.

1 participant