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

DatePicker doesn't popup inside Headless UI Dialog component #2

Closed
qhoang-cbs opened this issue Mar 23, 2022 · 4 comments
Closed

DatePicker doesn't popup inside Headless UI Dialog component #2

qhoang-cbs opened this issue Mar 23, 2022 · 4 comments
Labels
question Further information is requested

Comments

@qhoang-cbs
Copy link

Describe the bug
DatePicker Modal doesn't seem to show up inside HeadlessUI Dialog/Modal component

To Reproduce
Steps to reproduce the behavior:

  1. Add between component of Headless UI
  2. Input field is rendered, but upon clicking on input field, nothing shows up.
@qhoang-cbs qhoang-cbs added the bug Something isn't working label Mar 23, 2022
@Jasenkoo
Copy link
Contributor

Reference (85) in the old repo.

Please check my comment here

The issue is happening due to autofocus in the Dialog component, causing an internal conflict and setting the focus flag.

To fix it, simply adjust the initialFocus prop on the dialog.

@Jasenkoo Jasenkoo added question Further information is requested and removed bug Something isn't working labels Mar 23, 2022
@claide
Copy link

claide commented Feb 17, 2023

Hi, I want to use this date picker but encountered the same issue, I followed the suggestions below but all didn't work:

  • teleport
  • iinitialFocus

package.json

"@headlessui/vue": "^1.7.9",
"@vuepic/vue-datepicker": "^4.0.0",

Will try to create a codesandbox link for demo.

@Jasenkoo
Copy link
Contributor

@claide Will take a look, v4 introduced some positioning changes.

Jasenkoo added a commit that referenced this issue Feb 17, 2023
@claide
Copy link

claide commented Feb 23, 2023

@Jasenkoo , I tried to replicate the issue but it's all working. After digging into what was wrong with my setup, I found out that it was because of the icons I imported from vue-remix-icons. I replaced it with heroicons for now.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants