-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: Datetime throws error when blurring picker quickly #26559
Comments
Thanks for the issue! This issue has been labeled as |
Hello @Marius-Romanus thanks for reporting this issue! I see the issue and will categorize this as a bug in our backlog. Note for the team when we fix this, we are incorrectly narrowing the type here: https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/picker-column-internal/picker-column-internal.tsx#L257 It should be:
Which then throws appropriate linting errors that the object can possibly be undefined. We should then update the implementation below to account for the active element possibly being |
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. |
Prerequisites
Ionic Framework Version
Current Behavior
When changing the time of the datetime, and quickly clicking outside (blur), it gives an error. It can be seen in the Firefox console.
Uncaught TypeError: activeElement is null
Expected Behavior
expected no error
Steps to Reproduce
In the ionic example itself you can see:
https://ionicframework.com/docs/api/datetime#basic-usage
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.6
Ionic Framework : @ionic/angular 6.4.1
@angular-devkit/build-angular : 15.0.4
@angular-devkit/schematics : 15.0.4
@angular/cli : 15.0.4
@ionic/angular-toolkit : 7.0.0
Capacitor:
Capacitor CLI : 4.6.1
@capacitor/android : 4.6.1
@capacitor/core : 4.6.1
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
NodeJS : v18.12.1
npm : 9.2.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: