diff --git a/src/Slider.jsx b/src/Slider.jsx index 60e493b..df42c84 100644 --- a/src/Slider.jsx +++ b/src/Slider.jsx @@ -182,6 +182,9 @@ class Slider extends React.Component { recent: valueNeedChanging, }); + const oldValue = state[valueNeedChanging]; + if (value === oldValue) return; + const props = this.props; // If it is not controlled component if (!('value' in props) && !('index' in props)) {