ui: [bug]: Calender UI is messed up after updating to react-day-picker
Describe the bug
Calender component has issue i updated react-day-picker then issue appeared. UI of calender is messed up terible UI.
Look on following image:
I am using NextJs14 and problem version of react-day-picker is ^9.3.0
Another thing i noticed that the dev of react-day-picker has changed something on it like currently i am getting error on
Thanks @shadcn
Affected component/components
Calender Component
How to reproduce
Just update react-day-picker to latest version that is 9.3.0
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Windows 10
NextJs14
Before submitting
- I’ve made research efforts and searched the documentation
- I’ve searched for existing issues
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 22
- Comments: 23
you guys can use sippet provide by Yoon Han here https://github.com/shadcn-ui/ui/issues/1574 or
When will be there an official update of the component?
I would like to, but I need the new UTC support of react-day-picker v9…
I can confirm that the issue still occurs in the latest versions of shadcn/react-day-picker looking very similar to the images from July 2024.
The solution by sibteali786 copied below fixed it. With this solution I had no styling issues.
Versions used:
Before:
After:
I have fixed it temporary, here the code:
And
same problem here
I am having the same issue. Any update on when an official update will be available?
typesafe version:
@shadcn i think it would be better if docs are updated with this as it took my whole day today figuring this out. Also please refer the repo where the docs can be updated i am up for it. Thanks
Can someone validate that the fix I used:
This seems to work for me removing the
...propsspread but may not be correctbump pls fix
Just checking in to see if there has been an update. Please do not close this.
Any update please ?