Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use 'views' prop #36

Open
jmccabe-harmelin opened this issue Oct 24, 2019 · 1 comment
Open

Can't use 'views' prop #36

jmccabe-harmelin opened this issue Oct 24, 2019 · 1 comment

Comments

@jmccabe-harmelin
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant