Skip to content

Force DayPicker's Dropdown to Always Open Downwards and Scroll if Needed #2675

Answered by rodgobbi
Abdulaziz930 asked this question in Support
Discussion options

You must be logged in to vote

Hi @Abdulaziz930

The default dropdown component mounted by the DayPicker uses the native HTML select, and how the content of the select 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 Selects:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Abdulaziz930
Comment options

Answer selected by Abdulaziz930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants