Skip to content

Commit 73fc6ef

Browse files
coderofsalvationvsn4ik
authored andcommitted
Added clearDates for clears range (uxsolutions#2114)
1 parent 81e1ac2 commit 73fc6ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/bootstrap-datepicker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,10 @@
15451545
p.setRange(range);
15461546
});
15471547
},
1548+
clearDates: function(){
1549+
this.pickers[0].clearDates();
1550+
this.pickers[1].clearDates();
1551+
},
15481552
dateUpdated: function(e){
15491553
// `this.updating` is a workaround for preventing infinite recursion
15501554
// between `changeDate` triggering and `setUTCDate` calling. Until

0 commit comments

Comments
 (0)