-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
[question] prevent Invalid DateTime #266
Comments
Hi!, Thanks for advance. |
This is what I'm doing now: |
Hi. How did you manage to input more than 2 numbers ? Can you reproduce it on the demo page https://agranom.github.io/ngx-material-timepicker/ ? |
Hello. |
Are you typing into input field or into clock dial ? |
Those two input fields above clock. |
It's strange, because I cannot type invalid time. Could you make a screenshot pls? |
What the browser do you use? |
Firefox, but I tried in explorer and edge and same behavior. |
Have you tried in chrome? |
nope, I'll try |
Ok, I tried in chrome its same in all browsers |
It's weird, cause I cannot reproduce it |
Just tried it on phone, and there it works. Can't input three digits or invalid time. |
I really don't know why it doesn't work for you on your PC |
Hi, I can confirm that the issue reported is correct. If you enable free text typing into the field and click somewhere else on the page to remove the focus the error message will appear overriding the freehand text. Might be nicer to allow custom validators to be set. Thanks |
Hi, I can reproduce it in Windows 10, Chrome 79, Chromium Edge 79 too. |
The issue is resolved. Update to the latest version (v.5.4.0). |
@Agranom I installed 5.4.1 but this still exists |
Hello,
I'd like to prevent user from entering invalid time into input field within timepicker. I have set: enableKeyboardInput="true" so when I toggle timepicker I can type into the fields above clock. They are restricted to only accept numbers, but I can input more than two digits or a value out of valid interval and then the field value changes to 'Invalid DateTime' which I have to remove to start setting time again. So I'd like to prevent user from entering invalid value or if they do, change the field value back to time the clock's showing. Is there a way to accomplish this?
Thanks for any suggestions.
The text was updated successfully, but these errors were encountered: