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

Timepicker doesn't work correctly when time is changed by keying in the input

Open sagar-ganatra opened this issue 11 years ago • 9 comments

  1. In the demo page - http://jdewit.github.io/bootstrap-timepicker/ change minutes by keying in the value (instead of using arrow keys). For example, if the initial value is 4:00 PM, after changing the minute value it would be say 4:33 PM.
  2. Use the right arrow key to highlight PM.
  3. Use the up/down arrow key to change it to AM.

Notice the value of minutes, it gets reset to '00'.

sagar-ganatra avatar Jan 15 '14 10:01 sagar-ganatra

Any update on this? This is blocking the progress of the project that I'm working on.

sagar-ganatra avatar Jan 17 '14 07:01 sagar-ganatra

No, sorry. I am too busy with other projects at the moment.

jdewit avatar Jan 17 '14 19:01 jdewit

Same issue here. Could you fix it?

comtom avatar Feb 06 '14 12:02 comtom

Any update on this? I'm also experiencing an issue with this scenario:

  1. minute value = 12 with minuteStep = 5
  2. Clicked on arrow down. This will give me 07, then 02 after clicking it again.
  3. Clicked on arrow up. This will give me 10, then after clicking it again will give me 15.

Why did it changed to the nearest multiple after clicking arrow up instead of

current value + minuteStep

mmrenomeron avatar Feb 28 '14 12:02 mmrenomeron

We noticed this issue gets fixed by #217. Entering numbers (from above Qwerty) works fine un-patched. With the patch entering numpad numbers works correctly where before it was not.

KevM avatar May 05 '14 15:05 KevM

The demo page is currently a bit... broken. I tried updating it to bootstrap 3, and the demo markup needs to be changed a bit.

Please take a look at the recent release (v0.5.1), and let me know if the problem still exists.

mrhota avatar Aug 10 '15 20:08 mrhota

@mrhota - What change did you make? Can you post the code here please

gameboyzone avatar Mar 18 '16 21:03 gameboyzone

@gameboyzone What are you asking? If you want to know what changed in v0.5.1, that's what Git is for.

mrhota avatar Mar 18 '16 22:03 mrhota

Hello @mrhota,

In your above comment, you mentioned (see quotes) - The demo page is currently a bit... broken. I tried updating it to bootstrap 3, and the "demo markup needs to be changed a bit."

With reference to above, I'm having issues trying to set values in the Timepicker using setTime and also trying to figure out if there an event method to detect when the time changes. I have Bootstrap 3 in my framework. So if you have changed the demo code to make it work, would you mind putting the examples here.

gameboyzone avatar Mar 19 '16 15:03 gameboyzone