We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a6f918 + 1e1d089 commit 5009153Copy full SHA for 5009153
daterangepicker.js
@@ -1118,7 +1118,7 @@
1118
1119
//if a new date range was selected, invoke the user callback function
1120
if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
1121
- this.callback(this.startDate, this.endDate, this.chosenLabel);
+ this.callback(this.startDate.clone(), this.endDate.clone(), this.chosenLabel);
1122
1123
//if picker is attached to a text input, update it
1124
this.updateElement();
0 commit comments