-
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 month navigation blocked with min attribute #24757
Comments
@antoine92190 thanks for reporting this issue! I can replicate the same behavior in our |
Anyone that runs into this issue can temporarily use this dev build:
You can install it for your necessary package (react/vue/angular/core). Thanks! |
@sean-perkins Is it safe tu use the dev build in production? |
@sean-perkins |
The same bug is reproduced if use the max attribute.
|
This is still happening to me too, for min and max dates. Ionic Angular 6.0.11. To elaborate: I am able to swipe to months that contain the min/max dates (correct behaviour), and I am able to select the months with the min/max dates from the month picker in the top left (also correct behaviour). However the next and previous buttons in the top right are disabled if the next/previous month contains a min/max date (incorrect behaviour). I've done some experimenting and it seems like the incorrect behaviour only occurs if the day (i.e. 15) of the min date is greater than the current day. If the day of the min date is equal to or less than the current day the buttons behave correctly. Likewise for the max date, the incorrect behaviour only occurs if the day of the max date is less than the current day, etc. Example: Found an open bug dealing with this more specifically, linking here. |
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
When I set a min date, for example
min="2022-02-09"
, the datetime picker opens correctly, and January is correctly disabled.But if I navigate to march, I cannot go back to February.
Screen.Recording.2022-02-09.at.18.19.22.mov
Expected Behavior
We should be able to go back to previous month as it is and was not disabled.
Steps to Reproduce
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.12.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.7
@angular-devkit/build-angular : 12.2.4 (/Users/antoine/Dev/agorapulse/platform/frontend/node_modules/@angular-devkit/build-angular)
@angular-devkit/schematics : 11.2.18
@angular/cli : 12.2.4 (/Users/antoine/Dev/agorapulse/platform/frontend/node_modules/@angular/cli)
@ionic/angular-toolkit : 3.1.1
Capacitor:
Capacitor CLI : 3.2.4
@capacitor/core : 3.2.4
Cordova:
Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : not installed
native-run : 1.5.0
System:
NodeJS : v14.17.0 (/usr/local/bin/node)
npm : 6.14.13
OS : macOS
Xcode : Xcode 13.2.1 Build version 13C100
Additional Information
No response
The text was updated successfully, but these errors were encountered: