bootstrap-timepicker icon indicating copy to clipboard operation
bootstrap-timepicker copied to clipboard

Autocorrection for wrong input

Open jangix opened this issue 6 years ago • 0 comments

Imagine: timepicker on a textbox with placeholder="hh:mm" then setDefaultTime=false.

By inserting an incorrect value in the texbox as a literal string, the control arbitrarily sets the time to "0:00 AM"!

I think it's a serious bug, many users don't watch the monitor while writing, this bug could allow the submit of the form with unwanted data.

Solutions that I would like in case of incorrect input:

  • Set empty value in textbox (to see eventual placeholder and avoid submit).
  • Set "12:00 PM" instead of empty value in the widget (to facilitate the selection of the time)
  • Play a beep sound.
  • Trigger an event.

jangix avatar Sep 18 '18 13:09 jangix