jdewit / bootstrap-timepicker

[Deprecated] A simple timepicker component for Twitter Bootstrap
MIT License
1.64k stars 1.09k forks source link

time picker widget won't close #191

Open ferry77 opened 10 years ago

ferry77 commented 10 years ago

if I have 2 textbox, say

and make it timepicker by using this script

$('.timepicker').timepicker();

when I play with the textbox clicking between the two element, it will show 2 timepicker widget.. then after I change the value on the 1st timepicker using UP or DOWN arrow.. the 2nd widget close, but when I click the 2nd textbox to bring up the widget again, then change value, the issue come up because the 1st timepicker widget won't close.

is anyone experiencing like this?

thanks for your help

8496tar commented 10 years ago

I have similar issue: I want to create a datetime range using 2 bootstrap datepickers and 2 bootstrap timepickers, but I can't manage do close the dropdowns unless I click somewhere that are not a timepick nor a datepick.

frahugo commented 10 years ago

The widget does not even close if we TAB to another field, even with just one time picker in the form. This is an issue for some of my users. I'll have a look to see if I can fix it. Maybe it will solve the issue described above.

ganySA commented 10 years ago

$('#startTime').timepicker('hideWidget');

works for me.

jyotiverma0310 commented 9 years ago

If i am using $('#startTime').timepicker('hideWidget') than timepicker can not edit time with arrow keys. Is there any other solution for this problem?

mmarchini commented 9 years ago

Can you please paste a snippet of your code (HTML and JS) at https://jsfiddle.net/, so we can take a better look at what's going on?

mrhota commented 9 years ago

@testjava03 are you using latest release of bootstrap-timepicker? We're at v0.5.1.