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: month/year picker is not closed when datetime is dismissed #25787

Closed
4 of 7 tasks
tirooo opened this issue Aug 19, 2022 · 3 comments · Fixed by #25789
Closed
4 of 7 tasks

bug: month/year picker is not closed when datetime is dismissed #25787

tirooo opened this issue Aug 19, 2022 · 3 comments · Fixed by #25789
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@tirooo
Copy link

tirooo commented Aug 19, 2022

Prerequisites

Ionic Framework Version

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

Current Behavior

I use "ion-datetime-button" to select date , but I discover when i open modal and go to "Month and Year Selection" then close modal.
when i open modal again and back to "Date Selection". At this time when i select day but month will change(Change to last month)

Expected Behavior

Modify the corresponding data

Steps to Reproduce

1:click ion-datetime-button to open modal box
2:go to "year-month selection" Interface
3:click backdrop to close modal
4:click ion-datetime-button to open modal box again
5:go to "date selection" Interface
6: select any day, at this time month will be changed

Related code

<ion-datetime-button datetime="datetime"></ion-datetime-button>

<ion-modal [keepContentsMounted]="true">
  <ng-template>
    <ion-datetime id="datetime"></ion-datetime>
  </ng-template>
</ion-modal>

Ionic Info

Ionic CLI : 6.20.1 (C:\Users****\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/angular 6.2.2
@angular-devkit/build-angular : 14.0.6
@angular-devkit/schematics : 14.0.6
@angular/cli : 14.0.6
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 3.7.0
@capacitor/android : 3.7.0
@capacitor/core : 3.7.0
@capacitor/ios : not installed

Utility:

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

System:

NodeJS : v14.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.9
OS : Windows 10

Additional Information

My English is not good. I try my best to express myself

@ionitron-bot ionitron-bot bot added the triage label Aug 19, 2022
@liamdebeasi liamdebeasi self-assigned this Aug 19, 2022
@liamdebeasi liamdebeasi changed the title bug: ion-datetime-button error bug: month/year picker is not closed when datetime is dismissed Aug 19, 2022
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Aug 19, 2022
@ionitron-bot ionitron-bot bot removed the triage label Aug 19, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. Here is a dev build with a proposed fix for the issue if you are interested in testing:

npm install @ionic/[email protected]

@liamdebeasi liamdebeasi removed their assignment Aug 19, 2022
@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #25789, and a fix will be available in an upcoming release of Ionic Framework. Please feel free to continue to test the dev build.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 21, 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 Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants