-
Notifications
You must be signed in to change notification settings - Fork 145
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
Carret moved to end of input when date is invalid #297
Comments
After experiencing this issue as well, I had a quick look at the code and suspect this issue is occurring due to date-picker.directive.ts:184 and date-picker.directive.ts:200. It appears that the form control is being updated all the time, which pushes the cursor to the end? I get why this is happening when the user selects a date from the picker, but when they're typing via the input box, we probably don't need to update the input box again (it should already have the value). |
@pklein, good point. Do you want to submit a PR? |
resolved in c96f2a2 |
@vlio20 is this the same reason why attempting to type in the date would flicker? |
Might be. |
With the day picker directive ( and day time picker directive ), the carret is moved to the end of the input when the date is invalid.
This does not happens with the components.
See this screencast :
tested on the demo page
tested on the demo page
See attached gif
tested on the demo page
Tested on chrome, edge and IE
The text was updated successfully, but these errors were encountered: