Skip to content

Commit

Permalink
Don't close calendar when click on custom range and update view
Browse files Browse the repository at this point in the history
  • Loading branch information
lalanne-intuiface committed Oct 17, 2018
1 parent ff45dad commit 6e3e2b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,13 @@

if (!this.alwaysShowCalendars)
this.hideCalendars();
this.clickApply();

// Intuiface change
// When click on custom range, don't close calendar and update view
this.setStartDate(this.startDate);
this.setEndDate(this.endDate);
this.updateView();
// this.clickApply();
}
},

Expand Down

0 comments on commit 6e3e2b2

Please sign in to comment.