We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de5d598 commit 219ee28Copy full SHA for 219ee28
src/carousel.js
@@ -63,14 +63,14 @@ class Carousel extends React.Component {
63
64
static getDerivedStateFromProps(nextProps, prevState) {
65
const frames = [].concat(nextProps.frames || nextProps.children || [])
66
- const nextState = { frames }
+ const nextState = { frames }
67
if (frames.length && frames.length !== prevState.frames.length) {
68
nextState.current = 0
69
}
70
return nextState
71
72
73
- hideFrames = () => {
+ hideFrames () {
74
for (let i = 1; i < this.state.frames.length; i++) {
75
this.refs['f' + i].style.opacity = 0
76
0 commit comments