hey,
i'm using singleDatePicker and i would like the shortcuts button to not be displayed.
how can i do that?
is there a prop i'm missing that disables the display of that button?
thanks :)
was about to ask the same, the only condition i found for displaying that is !isTouch on the DayPicker.jsx:

would be nice if we can explicitly configure to hide / show this, for example via a prop enableKeyboardShortcuts
Why would you want to hide it? It's for accessibility.
it overflowed and i don't have enough room in the page where the date picker is needed to adjust the sizes..
i fixed it with display none in the meantime but i think it would be nice if it was optional
I think that perhaps what would make the most sense is an option to disable the keyboard shortcuts unconditionally, which would then naturally hide the shortcuts button.
@ljharb what do you mean by
an option to disable the keyboard shortcuts unconditionally
do you mean that there shouldnt be an option to show / hide the shortcut but instead an option to disable the feature as a whole?
Correct. If keyboard shortcuts work, the "?" button should be displayed; if it's not displayed, the shortcuts shouldn't work.
I think the keyboard shortcuts feature should get some second attention. i mean it's a great feature but can't really use it with the issues it has. #461 #462
@ljharb specific users may not need accessibility (shortcuts specifically) and throwing to them an extra button will just confuse them more.
Having an option to disable shortcuts all together sounds good to me since if you don't know that shortcuts exist you wouldn't expect something to happen if you accidentally press a key.
Thank you :)
issue #427 got most of the issues we mentioned the last couple of days regarding the keyboard shortcuts
@ljharb I disagree. Keyboard shortcuts should be non-negotiable, but I think it's fine to have an option to hide the menu.
@majapw you mean hiding the button that shows the menu?
Yeah. I've added an option for that in https://github.com/airbnb/react-dates/pull/477
@majapw why is it acceptable for keys to secretly trigger behavior without a clear explanation for what they do?
The hideKeyboardShortcutsPanel prop is available in the latest version.
Most helpful comment
The
hideKeyboardShortcutsPanelprop is available in the latest version.