Skip to content

Commit 9b14470

Browse files
committed
Fix array splice effect on weekdays prop
1 parent 248196d commit 9b14470

File tree

4 files changed

+15075
-15075
lines changed

4 files changed

+15075
-15075
lines changed

dist/react-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ return /******/ (function(modules) { // webpackBootstrap
210210
},
211211

212212
initializeMomentLocale: function initializeMomentLocale() {
213-
var weekdays = this.props.weekdays;
213+
var weekdays = this.props.weekdays.slice(0);
214214
weekdays = weekdays.concat(weekdays.splice(0, this.props.weekStart));
215215

216216
this.props.moment.locale(this.props.locale, {

dist/react-datepicker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)