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

Cannot focus out of popover within modal #3002

Open
nicolas-besnard opened this issue Feb 20, 2024 · 0 comments
Open

Cannot focus out of popover within modal #3002

nicolas-besnard opened this issue Feb 20, 2024 · 0 comments

Comments

@nicolas-besnard
Copy link

nicolas-besnard commented Feb 20, 2024

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

1.7.17

Reproduction URL

https://codesandbox.io/p/sandbox/headless-ui-x-daterangepicker-c7zgr8

Screenshot-202402-20.at.17.20.22.mp4

Describe your issue

When using MUI daterange picker on a button within a HeadlessUI modal, once opened, I cannot close the daterange picker.

Weirdly, it's working if the daterange is bound to and input.

If I replace the Dialog.Panel with a div in my Modal, the component is working again. By looking at the code of Dialog.Panel, it seems that events are not bubbled through the react tree

@KrisBraun KrisBraun assigned KrisBraun and unassigned KrisBraun Mar 25, 2024
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

No branches or pull requests

2 participants