Skip to content

Commit 80cf4dc

Browse files
committed
There's an override to the _selectDate() method that prevents the calendar from closing after selecting a new date. If the timepicker is not enabled then there's no reason to execute this code, it should instead fire the base _selectDate() method.
1 parent 761d0f3 commit 80cf4dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@
13481348
var inst = this._getInst($(id)[0]),
13491349
tp_inst = this._get(inst, 'timepicker');
13501350

1351-
if (tp_inst) {
1351+
if (tp_inst && inst.settings.showTimepicker) {
13521352
tp_inst._limitMinMaxDateTime(inst, true);
13531353
inst.inline = inst.stay_open = true;
13541354
//This way the onSelect handler called from calendarpicker get the full dateTime

0 commit comments

Comments
 (0)