From 35b7f51982f6ebdc78bb101f0707f3384ba0f993 Mon Sep 17 00:00:00 2001 From: maqinghua Date: Thu, 13 Sep 2018 14:18:49 +0800 Subject: [PATCH] Slider: fix bug onChange can't return 0 --- src/slider/Slider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slider/Slider.jsx b/src/slider/Slider.jsx index e0b4904d2..74d3fed2f 100644 --- a/src/slider/Slider.jsx +++ b/src/slider/Slider.jsx @@ -142,7 +142,7 @@ export default class Slider extends Component { } } - this.forceUpdate(); + this.setState({ oldValue }); } setPosition(percent: number): void {