-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Date picker with popover is not opening #910
Comments
Same. Works in Chrome but not in Firefox |
I got this error on my Astro project. I've fixed it by adding client directive to react component where it is imported into astro page. |
you can try to hotfix it in your apps by removing the |
Taking out initialFocus on datepicker.tsx did work for me. |
Indeed. So now on mobile devices it opens as well. |
Worked for me too :D thanks <3 |
Worked for me too |
Thanks! Date picker wasn't opening for me on Firefox within a modal but removing initialFocus fixed the problem for me. |
ahh, thanks, that definitely did it, after removing initialFocus fixed it. |
removing initialFocus did not work for me. Any ideas? After bit of debugging I've noticed that
This pushes is out of view |
So this can actually be fixed by adding |
I had a similar issue. I used fowardRef in my trigger i.e. button to fix this. |
It really worked. |
Thankyou So Much man it works for me 🏆 |
I was rendering a date picker inside a Sheet. It started behaving weirdly. Then this solution worked for me. |
The code: `"use client"; import * as React from "react"; import { cn } from "@/lib/utils"; export function DatePickerDemo() { return ( |
I have also encountered with this issue too. It seems that the date range picker component's styling is broken because of the latest version of react-day-picker, in my case version Here is a workaround for this:
Hopefully that should fix the issue. Version 8.9.1 is working fine on my end. Hope this helps! @efgomes @Rufai-Ahmed |
|
Thanks @aidrecabrera. Now works after downgrading to 8.10.1 |
I too ran into same issue. Datepicker styles were broken. Downgraded to 8.10.1 and it works well. Hope this will be fixed on 9.0.0 soon. Thanks very much @aidrecabrera |
I got the same issue with 9.0.1, 8.10.1 working fine! |
Thanks lad! it works |
this steps did work for me. |
@shadcn why are you adding and removing "stale" label? |
It’s a bot (running under my username). I should’ve named it otherwise. |
Date picker is put into a separate component and called wherever needed but on clicking the date picker calendar is not showing
The text was updated successfully, but these errors were encountered: