Prerequisites
Ionic Framework Version
Current Behavior
Datetime control show empty time popover and when it is dismissed an error occurs which makes ion-datetime unusable.
Note that the value provided to the control is null and the min property must be in the future. If the min property is in the past then everything works fine.
Expected Behavior
Time part needs to be displayed correctly and no error when it is dismissed/closed
Steps to Reproduce
- open this link https://ionic6-angular13-qkrphu.stackblitz.io/
- tap on the button
- tap on the time control
Note that the popover opened is empty - see below

- tap outside of the popover to dismiss it
Note that an error is triggered/thrown - see below

You can also see the problem here https://stackblitz.com/edit/ionic6-angular13-qkrphu?file=src%2Fapp%2Fapp.component.ts
Code Reproduction URL
https://stackblitz.com/edit/ionic6-angular13-qkrphu?file=src%2Fapp%2Fapp.component.ts
Ionic Info
See https://stackblitz.com/edit/ionic6-angular13-qkrphu?file=src%2Fapp%2Fapp.component.ts
Additional Information
This seems to be related to #22756 which has been reported to be fixed.