Skip to content
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 broken when min attribute is set #25870

Closed
4 of 7 tasks
antoine92190 opened this issue Sep 1, 2022 · 2 comments
Closed
4 of 7 tasks
Assignees
Labels

Comments

@antoine92190
Copy link

antoine92190 commented Sep 1, 2022

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Issue when using the datetime picker with the below code:

<ion-modal [trigger]="elementId">
    <ng-template>
        <ion-datetime min="2022-09-01">
        </ion-datetime>
    </ng-template>
</ion-modal>
  • Set a min attribute
  • Navigate to the next year, for example January 2023
  • Go back to the previous month => the displayed month is September 2023 instead of December 2022
Screen.Recording.2022-09-01.at.12.04.28.mov

Ionic Info

Ionic:

Ionic CLI : 6.20.1 (/Users/antoinedupont/.npm-packages/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.5
@angular-devkit/build-angular : 13.2.6 (/Users/antoinedupont/dev/agorapulse/platform/frontend/node_modules/@angular-devkit/build-angular)
@angular-devkit/schematics : 13.3.9
@angular/cli : 13.2.4 (/Users/antoinedupont/dev/agorapulse/platform/frontend/node_modules/@angular/cli)
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 3.2.4
@capacitor/android : 3.2.4
@capacitor/core : 3.2.4
@capacitor/ios : 3.2.4

Cordova:

Cordova CLI : 11.0.0
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : not installed globally
native-run : 1.6.0

System:

NodeJS : v14.17.0 (/usr/local/bin/node)
npm : 6.14.13
OS : macOS Monterey
Xcode : Xcode 13.4.1 Build version 13F100

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Sep 1, 2022
@liamdebeasi liamdebeasi self-assigned this Sep 1, 2022
@liamdebeasi
Copy link
Contributor

liamdebeasi commented Sep 1, 2022

Thanks for the issue. I am going to close this as a duplicate of #25708. (The issue mentions using max, but the underlying cause is the same)

@liamdebeasi liamdebeasi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 1, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants