[pickers] using disableOpenPicker
prop with responsive DatePicker shows no dates in mobile calendar dialog
#11618
Labels
bug 🐛
Something doesn't work
component: DatePicker
The React component.
component: pickers
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
regression
A bug, but worse
Steps to reproduce
Link to live example: https://codesandbox.io/s/amazing-silence-ks3gq6?file=/src/Demo.tsx
Steps:
Current behavior
When using
<DatePicker disableOpenPicker />
on a device, I want to select a date from the calendar picker but there are no dates in the dialog to choose. The dialog only contains action buttons.Expected behavior
When using
<DatePicker disableOpenPicker />
on a device I want to select a date from the calendar picker. There should always be a list of days/months/years to select, as well as action buttons.Context
We want to be able to use the
disableOpenPicker
prop which should only effect the desktop version. Happy with the different behaviour on mobile, and know that disableOpenPicker won't do anything in that context. But it would be good if there were still some dates to pick 😄We are now using the DesktopDatePicker only instead, but would be good to be able to use the responsive version and the
disableOpenPicker
prop.Your environment
npx @mui/envinfo
Search keywords: pickers disableOpenPicker
The text was updated successfully, but these errors were encountered: