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
Changing or attempting to set the time in an ion-datetime component doesn't fire a change event so it is unusable.
Expected Behavior
After changing or setting a time using the ion-datetime component, it should fire a change event (like it used to do).
Steps to Reproduce
- Add an ion-datetime component with the
presentation="date-time"
orpresentation="time"
attribute - Choose the 'Time' button
- Select a time
- Note that the time does not update or get set (no change event)
Code Reproduction URL
https://stackblitz.com/edit/angular-1ez814
Ionic Info
Ionic:
Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 6.1.7
Capacitor:
Capacitor CLI : 3.5.1
@capacitor/android : 3.5.1
@capacitor/core : 3.5.1
@capacitor/ios : 3.5.1
Utility:
cordova-res : 0.15.4
native-run (update available: 1.6.0) : 1.5.0
System:
NodeJS : v16.13.0 (/usr/local/bin/node)
npm : 8.1.0
OS : macOS Big Sur
Additional Information
Reported by another user in the Ionic Discord server on 28th May 2022, https://discordapp.com/channels/520266681499779082/938816942750449704/979783252413935616
I found the above message when searching Discord for 'datetime' to see if anyone else was having these issues. I hadn't changed any of my own code that uses this component and already hooked into the change event, so was wondering why it no longer worked. I think it became broken with a recent core update.