akiran / akiran/react-slick

Prop "slide" seems not to work

Offen
#2,388 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hey,
I need to change the slide container from "div" to "ul" and the slides from "div" to "li" for accessibility problem, I saw that there is a prop called "slide" from the documentation with this description "Slide container type": it's a string and the default value is "div".

But I cannot get it to work, here's a sandbox:
https://codesandbox.io/p/sandbox/react-slick-playground-forked-fz5ljj?file=%2Findex.js%3A12%2C17

am I missing something?
thx

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.