react-time-picker
react-time-picker copied to clipboard
Hour input doesn't handle fast typing well, and converts input to unintended value
Type "345" into the hours input quickly, as if one were typing 3:45. Instead of '3' going into the hours input field, and '45' going into the minutes input field, the result is "10:05".
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
Yep that's a bug.
We change focus on key up, and you can press next key (in this case: "4") down before the previous one (in this case: "3") is up. This results in "34" typed in a number input, which for gets "converted" to 24-hour time format, removing 24 hours, resulting in "10" in hour field.
I tried typing zero and nine but the 0 gets immediately converted to 12 creating a problem in typing the single digit hour with zero