You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! This looks like a great project.
I noticed a behavior that looks odd to me.
If I click on one of the time components, let's say the month, and I start typing, instead of replacing the current content with the new value it add the new value to the value that is already there (making it not valid, of course).
In the following example, I clicked between the 2 and 018 in the year field, and typed "2019". I would expect it to just replace the year instead of producing this result (see date-time picker on macOS default calendar app). This is easily achieved by selecting the all text when the user clicks in any position. Maybe this behavior can also be toggled with some setting. I would be happy to contribute for this.
The text was updated successfully, but these errors were encountered:
wojtekmaj
changed the title
Avoid inserting new value on existing one
Input should select current value on focus
Oct 8, 2018
Hi,
thanks for your report. This is something that native date pickers are doing, so you're totally right it should work like that in React-DateTime-Picker.
Hi there! This looks like a great project.
![screen shot 2018-10-06 at 11 04 19](https://user-images.githubusercontent.com/2278117/46569580-9c837a00-c957-11e8-9e17-25b85b386464.png)
I noticed a behavior that looks odd to me.
If I click on one of the time components, let's say the month, and I start typing, instead of replacing the current content with the new value it add the new value to the value that is already there (making it not valid, of course).
In the following example, I clicked between the 2 and 018 in the year field, and typed "2019". I would expect it to just replace the year instead of producing this result (see date-time picker on macOS default calendar app). This is easily achieved by selecting the all text when the user clicks in any position. Maybe this behavior can also be toggled with some setting. I would be happy to contribute for this.
The text was updated successfully, but these errors were encountered: