Closed
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
The user opens the ion-datetime in a popover, selects a date and closes it.
When the use opens it again and tries to navigate the months via arrows, the rows change with the animation, but the month label does not change. Also, when the user clicks on the date, it causes the month to change
Expected Behavior
The user opens the ion-datetime in a popover, selects a date and closes it.
When the use opens it again and tries to navigate the months via arrows, the rows change with the animation and the month label changes accordingly. Also, when a date is selected, no change to month selection occurs.
Steps to Reproduce
- Click on button to open ion-datetime in a popover.
- Select some date
- Click on backdrop to dismiss
- Open ion-datetime again from the button
- Try navigating the months from the arrows
- Previous / next month rows are displayed, but month label does not change
- Clicking on a date after trying to navigate the months causes the month to change.
Code reproduction
<ion-app>
<ion-content>
<ion-button id="randomId">
<ion-icon icon="calendar"/>
</ion-button>
<ion-popover trigger="randomId">
<ion-content>
<ion-datetime/>
</ion-content>
</ion-popover>
</ion-content>
</ion-app>
Code Reproduction URL
https://codepen.io/agular/pen/PoQNZQB
Ionic Info
Ionic used as a dependency.
Additional Information
Occurs with the latest version of Ionic, 6.1.4