diff --git a/src/components/ReactSlider/ReactSlider.jsx b/src/components/ReactSlider/ReactSlider.jsx index 6a8fdda..7f548a6 100644 --- a/src/components/ReactSlider/ReactSlider.jsx +++ b/src/components/ReactSlider/ReactSlider.jsx @@ -836,7 +836,10 @@ class ReactSlider extends React.Component { } move(newValue) { - const { index, value } = this.state; + // Clone this.state.value since we'll modify it temporarily + // eslint-disable-next-line zillow/react/no-access-state-in-setstate + const value = this.state.value.slice(); + const { index } = this.state; const { length } = value; // Short circuit if the value is not changing