Skip to content

Commit

Permalink
Merge pull request #121 from misino/fix/react-16-issue-not-rerenderin…
Browse files Browse the repository at this point in the history
…g-handle

fix: do not mutate tempArray when creating handles
  • Loading branch information
mpowaga authored Feb 28, 2018
2 parents 5e85579 + e4d810c commit 439de4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
styles[i] = this._buildHandleStyle(offset[i], i);
}

var res = this.tempArray;
var res = [];
var renderHandle = this._renderHandle;
if (React.Children.count(this.props.children) > 0) {
React.Children.forEach(this.props.children, function (child, i) {
Expand Down

0 comments on commit 439de4f

Please sign in to comment.