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

Dialog focus bug with date range picker #2312

Closed
nicolas-besnard opened this issue Feb 27, 2023 · 2 comments · Fixed by #2322
Closed

Dialog focus bug with date range picker #2312

nicolas-besnard opened this issue Feb 27, 2023 · 2 comments · Fixed by #2322
Assignees

Comments

@nicolas-besnard
Copy link

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.7.12

What browser are you using?

All

Reproduction URL

https://codesandbox.io/s/headlessui-x-mui-date-range-picker-fgpkog

Describe your issue

When using MUI's date range picker within a Dialog, the first input is always focused and we cannot pick a second date.

This has been introduced by #2093. Here's the same code sandbox working with 1.7.5 https://codesandbox.io/s/headlessui-x-mui-date-range-picker-with-1-7-5-p3h6yh

@afzaalb
Copy link

afzaalb commented Feb 28, 2023

+1

v1.7.12
Chrome Browser

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #2322, and will be available in the next release.

You can already try it using:

  • npm install @headlessui/react@insiders.
  • npm install @headlessui/vue@insiders.

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 a pull request may close this issue.

3 participants