You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround that ended up solving this for me was to check if there are 2 slides, and if yes duplicate them to make it 4. Example - where slide elems are passed as children:
constructor(props){super(props);if(React.Children.count(props.children)===2){// slider breaks if there are exactly 2 items, so we make it 4this.children=[]React.Children.map(props.children,(child,index)=>{this.children.push(child);});React.Children.map(props.children,(child,index)=>{this.children.push(child);});}else{this.children=props.children;}}
I see that there is an exact same issue #80 but is closed, when it is pretty much reproducible.
The text was updated successfully, but these errors were encountered: