-
Notifications
You must be signed in to change notification settings - Fork 831
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
[DatePicker] Make possible to hide year view #1012
Comments
I see, for now it is not possible, we will extend |
Fixed in 3.0.0 |
@dmtrKovalenko @LukasDeco |
I know this is marked as closed, but I still don't see the datepicker hiding the year from the view when I use : Is there something I am missing? |
@dmtrKovalenko Me too. I do not see the effect of |
Hello! I know that almost a year has passed since the last comments, but I try to use |
@TomekStaszkiewicz Do you have a reproduction with v4.0.0-alpha.8? Do you want to open a new issue? |
Could we reopen this? This is not fixed. The repro is simple:
This shows the current year by default. Expected: No year shown. |
@sdankel The issue is about allowing to hide the year view (a view where years from minDate to maxDate are listed) From your example, I assume you expect to hidde the year in the input. Which can be done with the
|
Thanks for sharing the sandbox, @alexfauquette This is a screenshot from the sandbox: You can see that the year still shows up when you click on it. My hope is to have a date picker that is year-less. |
@sdankel You are referring to the calendar header and ability of changing it. |
By the way @sdankel you're on |
Hi Material-UI-Pickers team!
I love your date picker, but my app has a special use case.
My app allows people to set occasions for family and friends, like birthdays, holidays, etc. I don't want them to actually be able to select the year, just month and date. Once they select a month and date, the app will just take into account what today's date is and act accordingly.
So I really want a mode for the DatePicker component that only allows users to select day/month. Is this possible? I would love to contribute to the project and submit a PR for this if you would prefer.
Thanks!
Lukas
The text was updated successfully, but these errors were encountered: