mirror of
https://github.com/wassname/slider.git
synced 2026-10-03 12:50:28 +08:00
修复 Slider 初始 upperBound 与 sliderLength 错误的 Bug。
This commit is contained in:
1 parent
8bb867158a
commit
5fb5b5cbf6
1 file changed
+1
-1
+1
-1
@@ -74,7 +74,7 @@ var Slider = React.createClass({
|
||||
|
||||
componentDidMount: function() {
|
||||
this._onHandleResizeListener = DomUtils.addEventListener(window, 'resize', this.handleResize);
|
||||
this.handleResize();
|
||||
setTimeout(this.handleResize, 0);
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
|
||||
Reference in new issue
Block a user