vascofg / react-admin-date-inputs

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

Can't use 'views' prop #36

Open jmccabe-harmelin opened 5 years ago

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

Am I missing something?

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