jdewit / bootstrap-timepicker

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

Open some widget with tab #341

Open ghost opened 8 years ago

ghost commented 8 years ago

I have week wook time panel with this widget. But when switch inputs with Tab "old" widget don't close. screen

ThiagoBfim commented 6 years ago

I Have the same issue. This will probably correct this issue:

$timepicker.on('keydown', function (e) { switch (e.keyCode) { case 9: { $timepicker.timepicker('hideWidget'); $('.bootstrap-timepicker-widget').remove(); } } });

Another thing important is verify if have just one $('.bootstrap-timepicker-widget').

The modal of datepicker use this css selector, so before you create another one, you can do that:

if($('.bootstrap-timepicker-widget').size() < 1) { .... Logic to create the timerPicker ... }