Comments (3)
看了下源码,应该是
if (nextProps.sliderIndex && nextProps.sliderIndex !== this.state.sliderIndex) { this.setState({ sliderIndex: nextProps.sliderIndex }, ) }
这个地方的判断有问题,把 0 当成 false 了
from react-slider-light.
我看到了你的pull request了。。bug是那个地方导致的,但是turn函数里面还有一个bug。。。我自己改了,并且调整了下结构。省得一个bug改两个地方。另外还修改了受控情况下,手动点击分页符,会导致不受控的情况发生。
from react-slider-light.
4.2.0版本已经修改。
from react-slider-light.
Related Issues (17)
- ReferenceError: window is not defined HOT 4
- demo有问题 HOT 1
- 新需求采集贴 HOT 2
- 滚动应该从当前选中的索引开始 HOT 1
- css失效 HOT 1
- Uncaught TypeError: this.updater.enqueueCallback is not a function HOT 4
- dotStyle curDotStyle
- Can we use it in Gatsby?How to install it?
- 内部元素添加onClick事件没有反应
- 4.2.0 使用问题
- 4.2.0 缩略图问题
- fade效果
- 关于走马灯组件
- 为什么我在src里面改样式没反应啊 HOT 1
- 提示:无法找到模块“react-slider-light”的声明文件。 HOT 1
- 什么时候支持ts引入
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-slider-light.