Skip to content

Commit

Permalink
fix for pressing enter after, manually entering the date
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv Parmar committed Sep 24, 2014
1 parent 8bc254a commit 789424b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/bootstrap-datepicker.js
Expand Up @@ -1018,7 +1018,12 @@
this.dates.clear();
}
else if (ix !== -1){
this.dates.remove(ix);
if(!this.isInput){
this.dates.remove(ix); //fix for pressing enter after manually typing date.
}
else if(this.o.autoclose){
this.hide();
}
}
else {
this.dates.push(date);
Expand Down

0 comments on commit 789424b

Please sign in to comment.