react-time-picker icon indicating copy to clipboard operation
react-time-picker copied to clipboard

Hour input doesn't handle fast typing well, and converts input to unintended value

Open zachandblue opened this issue 2 years ago • 3 comments

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".

zachandblue avatar Dec 09 '21 16:12 zachandblue

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.

github-actions[bot] avatar Mar 14 '22 00:03 github-actions[bot]

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.

wojtekmaj avatar Mar 18 '22 23:03 wojtekmaj

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

DSp4wN avatar Sep 13 '22 19:09 DSp4wN