hello,
i’m using the lastest ion-datetime component and i’ve faced the following issue:
if i choose a min value as starting date, when i swipe months with the arrow and i got forward, i can’t go back to the first month.
For example, if I choose 1st of may 2022 as first available dater and 30th of september as max date if i go to june or july and i try to go back to may, i can’t and the min date available starts from 1st of june.
If i delete the starting date, everything works fine.
As you can see from the following video:
video example
While a video is nice to show what you’re seeing, it’s hard to debug this without some code. Can you recreate this in a small project and share the github link?
hello! thank you for your reply!
It turned out that it was an issue with the ionic release 6.0.7, it should be fixed with the release 6.0.8
opened 05:25PM - 09 Feb 22 UTC
closed 06:58PM - 09 Feb 22 UTC
package: core
type: bug
### Prerequisites
- [X] I have read the [Contributing Guidelines](https://githu… b.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
### 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.
https://user-images.githubusercontent.com/16256207/153254693-e2508753-aa73-4c89-96c3-79aa42f543b7.mov
### Expected Behavior
We should be able to go back to previous month as it is and was not disabled.
### Steps to Reproduce
- Add a min date to the datetime picker component
- Open the datetime picker
- Navigate to the next month
- Try to navigate back to the previous month => Not possible
### 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_
2 Likes