We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
Most recent (1.7.4)
What browser are you using?
Chrome
Reproduction URL
https://codesandbox.io/s/busy-rgb-r7boos?file=/src/App.tsx
Describe your issue
When using Popover, if the popover is open, and focus is taken away from the window, and is then returned to the window, an uncaught error is thrown.
Popover
Steps to reproduce in the sandbox above:
Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'.
This happens in non-iframe browsers as well.
Applying focus to the Popover.Panel doesn't help, as it doesn't trigger when the window loses focus.
focus
Popover.Panel
The text was updated successfully, but these errors were encountered:
window
Hey! Thank you for your bug report! Much appreciated! 🙏
This should be fixed by #2019, and will be available in the next release.
You can already try it using:
npm install @headlessui/react@insiders
npm install @headlessui/vue@insiders
I also updated your CodeSandbox link with the latest insiders build: https://codesandbox.io/s/nifty-chebyshev-hzkuyr?file=/package.json
Thanks!
Sorry, something went wrong.
Holy moly that was fast! Thanks!
RobinMalfait
Successfully merging a pull request may close this issue.
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
Most recent (1.7.4)
What browser are you using?
Chrome
Reproduction URL
https://codesandbox.io/s/busy-rgb-r7boos?file=/src/App.tsx
Describe your issue
When using
Popover
, if the popover is open, and focus is taken away from the window, and is then returned to the window, an uncaught error is thrown.Steps to reproduce in the sandbox above:
This happens in non-iframe browsers as well.
Applying
focus
to thePopover.Panel
doesn't help, as it doesn't trigger when the window loses focus.The text was updated successfully, but these errors were encountered: