Open jmccabe-harmelin opened 5 years ago
I am trying to create a DateInput that only shows Year and Month views. Following the Material-UI Pickers example (https://material-ui-pickers.dev/demo/datepicker#different-views)
Seems as easy as adding views: ["year", "month"], to the options prop. But when I pass these views into the DateInput, nothing happens.
views: ["year", "month"],
Am I missing something?
Here's a link to a code sandbox demo'ing the issue.
Some of the options (like autoOk and format) appear to be working just fine. While others (like views and openTo) are not working.
autoOk
format
views
openTo
I am trying to create a DateInput that only shows Year and Month views. Following the Material-UI Pickers example (https://material-ui-pickers.dev/demo/datepicker#different-views)
Seems as easy as adding
views: ["year", "month"],
to the options prop. But when I pass these views into the DateInput, nothing happens.Am I missing something?