From 789424bd0bf3822a47e01748fd52fd933e101370 Mon Sep 17 00:00:00 2001 From: Dhruv Parmar Date: Fri, 22 Aug 2014 15:39:40 +0530 Subject: [PATCH] fix for pressing enter after, manually entering the date --- js/bootstrap-datepicker.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/bootstrap-datepicker.js b/js/bootstrap-datepicker.js index 6fbbeb3d2..089a8e0a1 100644 --- a/js/bootstrap-datepicker.js +++ b/js/bootstrap-datepicker.js @@ -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);