fix: handle could be 0, close: #163

This commit is contained in:
Benjy Cui committed 2016-10-31 11:50:49 +08:00
1 parent 18ddbb796c
commit faa4f384a3
1 file changed
+1 -1
+1 -1
View File
@@ -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 });
}