-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-datetime not listing all possible years (v6) #23615
Comments
Thanks for the issue. There are a couple things going on here:
The spec does not really define what to do here, but the Flutter implementation is to show out of bound dates: https://material.io/components/date-pickers/flutter#date-pickers However, looking at this again I don't really see the value in showing the out of bound years, especially where datetime in
|
Thanks for the issue. This has been resolved via #23616, and a fix will be available in v6 beta 2. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[ ] 4.x
[ ] 5.x
[x ] 6.x
Current behavior:
Datepicker shows only 40 years when listing all possible years. Initially 2041 to 2001 are listed even though max is set to today and min to today minus 100 years (or 1900 which changes nothing).
Expected behavior:
List all years between min and max. Years after max should not be displayed in my opinion.
Related code:
Ionic info:
The text was updated successfully, but these errors were encountered: