Skip to content

Commit 5009153

Browse files
committed
Merge branch 'master' of github.com:dangrossman/bootstrap-daterangepicker
2 parents 0a6f918 + 1e1d089 commit 5009153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daterangepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@
11181118

11191119
//if a new date range was selected, invoke the user callback function
11201120
if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
1121-
this.callback(this.startDate, this.endDate, this.chosenLabel);
1121+
this.callback(this.startDate.clone(), this.endDate.clone(), this.chosenLabel);
11221122

11231123
//if picker is attached to a text input, update it
11241124
this.updateElement();

0 commit comments

Comments
 (0)