Force DayPicker's Dropdown to Always Open Downwards and Scroll if Needed #2675
-
Hi, Instead, I would like: The dropdown to always open downwards, regardless of available space. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The default dropdown component mounted by the If you want to control how it's displayed you'll need to use a custom Dropdown component instead. Let me know if you have more questions and if there's any way the docs could be improved. For reference, some examples of custom |
Beta Was this translation helpful? Give feedback.
Hi @Abdulaziz930
The default dropdown component mounted by the
DayPicker
uses the native HTMLselect
, and how the content of theselect
element is displayed is fully controlled by the browser.If you want to control how it's displayed you'll need to use a custom Dropdown component instead.
Please check the Custom Components guide for more details.
Let me know if you have more questions and if there's any way the docs could be improved.
For reference, some examples of custom
Select
s: