Skip to content

Commit bf1b2c8

Browse files
committed
Don't autoclose when unlinked todayBtn is clicked
1 parent 512b720 commit bf1b2c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/bootstrap-datepicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@
543543
}
544544
if (element) {
545545
element.change();
546-
if (this.autoclose) {
547-
this.hide();
546+
if (this.autoclose && (!which || which == 'date')) {
547+
this.hide();
548548
}
549549
}
550550
},

0 commit comments

Comments
 (0)