Skip to content

Commit

Permalink
Merge pull request #984 from tcrossland/master
Browse files Browse the repository at this point in the history
Don't deselect date unless datepicker is multidate
  • Loading branch information
acrobat committed Dec 10, 2014
2 parents 9209664 + f86114f commit 262cbe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,9 @@
if (!date){
this.dates.clear();
}
if (this.o.multidate === 1 && ix === 0){
// single datepicker, don't remove selected date
}
else if (ix !== -1){
this.dates.remove(ix);
}
Expand Down

0 comments on commit 262cbe6

Please sign in to comment.