We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 107e2bb commit 6ca5853Copy full SHA for 6ca5853
src/components/ReactSlider/ReactSlider.jsx
@@ -836,7 +836,10 @@ class ReactSlider extends React.Component {
836
}
837
838
move(newValue) {
839
- const { index, value } = this.state;
+ // Clone this.state.value since we'll modify it temporarily
840
+ // eslint-disable-next-line zillow/react/no-access-state-in-setstate
841
+ const value = this.state.value.slice();
842
+ const { index } = this.state;
843
const { length } = value;
844
845
// Short circuit if the value is not changing
0 commit comments