akiran / akiran/react-slick

AsNavFor doesn't work with version 0.23.0 and higher

Aperta
#1,434 10 commenti 15 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I have tried to use the code(from [here](https://react-slick.neostack.com/docs/example/as-nav-for/)), but it didn't sync well. When i downgrade it to **0.21.0**, it works great
```
import React, { Component } from "react";
import Slider from "react-slick";

export default class AsNavFor extends Component {
constructor(props) {
super(props);
this.state = {
nav1: null,
nav2: null
};
}

componentDidMount() {
this.setState({
nav1: this.slider1,
nav2: this.slider2
});
}

render() {
return (


Slider Syncing (AsNavFor)


First Slider


(this.slider1 = slider)}
>

1




2




3




4




5




6




Second Slider


(this.slider2 = slider)}
slidesToShow={3}
swipeToSlide={true}
focusOnSelect={true}
>

1




2




3




4




5




6





);
}
}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.