Fomantic-ui: [Calendar] Chrome chose the wrong hour in 24-hour format on some cases

Created on 6 Mar 2020  路  3Comments  路  Source: fomantic/Fomantic-UI

Chrome: 80.0.3987.132

https://fomantic-ui.com/modules/calendar.html#24-hour-format

If you enter a time for this sample, the time selected in the popup is incorrect.

1 -> 0:00
1: -> 1:00
13 -> 13:00

Entering 2 digits works correctly.

This problem does not occur with FireFox.

fomantic

browsechromium typbug

Most helpful comment

I will look into this issue and open a PR.

All 3 comments

This is reproducible.

  • When 0 .. 12 entered, 0:00 hour is chosen.
  • When 13 .. 23 entered, the matching hour is chosen as same as in other browsers.
  • With : like 0: or 1:, the matching hour is chosen as same as in other browsers.

chrome-hours2

I will look into this issue and open a PR.

Fixed by #1569

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Puspendert picture Puspendert  路  3Comments

rmarchiori picture rmarchiori  路  3Comments

PhilippGrashoff picture PhilippGrashoff  路  3Comments

hajanajubudeen88 picture hajanajubudeen88  路  4Comments

hajanajubudeen88 picture hajanajubudeen88  路  5Comments