You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-datetime after canceling and reopening the date shows incorrectly #30777
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
After canceling out of a datetime component and reopening the view you see the incorrect date displayed as selected even though the value is the correct one.
Expected Behavior
After canceling out of the datetime view and reopening it the active date should show the actual value and not the canceled one.
Steps to Reproduce
open the datetime view and select a new date and click ok. the button shows correctly
reopen the datetime view and select another date but click on cancel this time. the button still shows correctly.
reopen the datetime view you see the incorrect date displayed as selected even though the button shows the correct one (and the underlying value is the correct one).
methods: {
onBeginTimeModalDidDismiss() {
// Reset the date input when the modal is closed, otherwise the picker retains the value
this.$refs.begintime.$el.reset(this.begin_time)
}
}
Activity
ReneHRich commentedon Dec 18, 2025
For people running into this, I worked around this issue by resetting the value when the dialog is dismissed
fix(datetime): discard unconfirmed selection on cancel (ionic-team#31558
ShaneK commentedon Oct 21, 2026
Thanks for the report! The fix for this issue was deployed in v9.0.9!