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

Make the ref optional in the Popover component #1465

Merged
merged 2 commits into from
May 18, 2022
Merged

Conversation

RobinMalfait
Copy link
Member

We "required" the prop to calculate the ownerDocument. But if you don't provide a ref, then we
will use the Popover.Button to calculate it. If that's not defined, then we can fallback to the
default document.

Fixes: #1430

We "required" the prop to calculate the `ownerDocument`. But if you
don't provide a ref, then we will use the `Popover.Button` to calculate
it. If that's not defined, then we can fallback to the default
`document`.
@vercel
Copy link

vercel bot commented May 18, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview May 18, 2022 at 11:46AM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview May 18, 2022 at 11:46AM (UTC)

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.

[Bug v1.6.0] Popover doesn't receive Fragment as value of the 'as' prop
1 participant