mirror of
https://github.com/wassname/slider.git
synced 2026-10-30 13:50:22 +08:00
fix: handle could be 0, close: #163
This commit is contained in:
1 parent
18ddbb796c
commit
faa4f384a3
1 file changed
+1
-1
+1
-1
@@ -101,7 +101,7 @@ class Slider extends React.Component {
|
||||
const isNotControlled = !('value' in props);
|
||||
if (isNotControlled) {
|
||||
this.setState(state);
|
||||
} else if (state.handle) {
|
||||
} else if (state.handle !== undefined) {
|
||||
this.setState({ handle: state.handle });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user