ui: [Bug]: Date Picker not usable for Selecting Birth Date, despite this use case being advertised.
Describe the bug
Has anyone actually tried to use the date picker for selecting your bith date?
It’s basically impossible, because you can’t select the year.
Affected component/components
Date Picker, Calendar
How to reproduce
Obvious
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
all browsers
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 3 years ago
- Reactions: 8
- Comments: 20 (1 by maintainers)
For anyone looking for a solution, here is a small modification to the component that works for me.
I’m happy to create a PR to add this as a variant.
feel free to use this variant. you will need
react-day-pickerv9 or above: https://github.com/shadcn-ui/ui/pull/4421I think this is better UX than a Select Dropdown, it is inspired by: https://material.angular.io/components/datepicker/overview
@johanneskares
its fine but when you select calendar and re-open , its reseted. how can we fix it?