-
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: datetime preferWheel min/max increases the number of dates initially rendered #26059
Comments
Thanks for the report. The problem here is when accounting for the Here is a dev build with a proposed fix if you are interested in testing:
|
Thanks for the issue. This has been resolved via #26065, and a fix will be available in an upcoming release of Ionic Framework. Feel free to continue testing the dev build and let me know if you run into any issues. |
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. |
Prerequisites
Ionic Framework Version
Current Behavior
Adding a max value to ion-datetime with preferWheel="true" slows down performance. Leaving out max or max value close in time works fine. Max value for example 10 years in future makes wheel perform very slow.
My guess is that using max value, all values are read into wheel and hence slow. Omitting max seems to read values adhoc (I can sense a slight delay when moving into a new month)
Tested on iOS device (slow/old device: iPhone 7, iOS 15.7), not tested on Android.
Expected Behavior
Wheel should perform well with max value set.
Steps to Reproduce
In code below, setting max to 2032 is slow. Setting max to 2022 works fine. Omitting max works fine.
Code Reproduction URL
No response
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: