vascofg / react-admin-date-inputs

Date Inputs for react-admin
MIT License
68 stars 81 forks source link

Can't use 'views' prop #36

Open jmccabe-harmelin opened 4 years ago

jmccabe-harmelin commented 4 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.

Am I missing something?

jmccabe-harmelin commented 4 years ago

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.