radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.53k stars 204 forks source link

[Bug]: Updated date picker does not let user choose month and year #565

Closed MorningstarPhoenix closed 1 month ago

MorningstarPhoenix commented 1 month ago

Reproduction

https://www.shadcn-vue.com/docs/components/date-picker.html

Describe the bug

The updated Date Picker component does not let user change month and year quickly (the only way to change it is to use the arrows) making using this component for a birthday date picker not possible. I assume this is a bug, not intended behavior.

System Info

Bug present in demos in the shadcn-vue website

Contributes

sadeghbarati commented 1 month ago

If you play with radix-vue Calendar component you will notice there are features to build your own style to select Month and Year

Also, there is a demo in Calendar link which has the feature you want

https://www.shadcn-vue.com/docs/components/calendar.html#month-year-selects

MorningstarPhoenix commented 1 month ago

Right, so that's intended behavior then? I'm asking this because the website uses the birthday use case as an example (last example in the docs page), with no customization.

sadeghbarati commented 1 month ago

so that's intended behavior then

Yes, so you could build your own style for month and year selection

MorningstarPhoenix commented 1 month ago

Gotcha, thank you