there is any props to set size or max height of years selection ? #2376
-
since there is size props on html #https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/size |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@GeuntaBuwono if you mean the height of the dropdown when opened than this depends from the behavior of the Operating System. While I believe this is not a real issue, you have different options here:
<DayPicker components={{ Select: MyCustomSelect, Option: MyCustomOption }} /> where
Since this is not the first time we get this request, I'll see to add more examples in the docs and see if you could add different ways to navigate between years (any idea?). |
Beta Was this translation helpful? Give feedback.
-
@gpbl I've tried the solution. but in my case is for DoB
|
Beta Was this translation helpful? Give feedback.
@GeuntaBuwono this is the standard behavior of MacOS. I'm not aware about any way to change it, and I don't see even why. If you need to improve the user experience, do not use a drop-down and ask users to enter the year via an input field instead of a select.