-
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, cannot entry 00 for time entry #26409
Comments
Thanks for the report. I can reproduce this behavior. We use a regex to clean up the wheel picker values when trying to best match your keyboard entry to an item in the wheel. The regex does this by stripping out leading zeros. This allows you to type I fixed this by having the regex allow at least one 0 when the string it was processing was all zeros. As a result, Here is a dev build if you would like to test the proposed fix:
|
@liamdebeasi I am sorry if i sound out of depth here. |
No worries, I should have provided more instructions. That dev build points to a pre-release version of Ionic on npm that contains the fix for this issue. You can run the following command to install it:
(This dev build also works for other packages such as |
Hi @liamdebeasi |
Thanks for the issue. This has been resolved via #26423, and a fix will be available in an upcoming release of Ionic Framework. |
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 clicking on time picker trying to change time a number keypad opens on mobile phone but you can change the hour value to everything but 00 for some reason. I can change minutes to 00 for some of the times.
Untitled.mp4
Expected Behavior
00 shoud be an expected value for hour or minutes field when entering via a keypad just like any other numbers.
for e.g 00:00 ( Not alllowed via keypad. )
Steps to Reproduce
Steps to Reproduce
Android
You can observe the same behaviour on browsers using the keyboard.
https://angular-yxrjrr.stackblitz.io
Code Reproduction URL
https://github.com/iStoha/time-picker
Ionic Info
Ionic:
Ionic CLI : 5.4.13
Ionic Framework : @ionic/angular 13.2.2
@angular-devkit/build-angular : 13.2.2
@angular-devkit/schematics : 13.2.2
@angular/cli : 13.2.2
@ionic/angular-toolkit : 6.0.0
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 9.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard , cordova-plugin-ionic-webview (and other plugins)
Additional Information
No response
The text was updated successfully, but these errors were encountered: