akiran / akiran/react-slick

bug with aria-hidden

Ouverte
#2,389 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello everyone! How are you? I have a very specific problem regarding lib and a prop called aria-hidden
![image](https://github.com/akiran/react-slick/assets/102080696/17f8ae79-cf01-4f79-ab17-8aa8dc369390)
When reloading multiple times via filter, there comes a certain moment where this prop simply becomes true. Notice how it looks when it behaves as expected::
![image](https://github.com/akiran/react-slick/assets/102080696/27d028b3-62f3-482c-a8bc-fd8be188e6f7)

I believe that solving it by forcing this to be modified via DOM is not a good practice. Have you ever been through this? What would be your solution?

`
{renderItems()}
`

` const SLIDE_SETTINGS = {
infinite: false,
dots: false,
arrows: true,
prevArrow: ,
nextArrow: ,
slidesToShow: 15,
slidesToScroll: 14,
touchThreshold: 500,
responsive: SLIDER_RESPONSIVE_SETTINGS,
speed: 500,
initialSlide: currentIndex
}`

`export const SLIDER_RESPONSIVE_SETTINGS = [
{
breakpoint: 1635,
settings: {
slidesToShow: 12,
slidesToScroll: 12
}
},
{
breakpoint: 890,
settings: {
slidesToShow: 10,
slidesToScroll: 10
}
}
]
/`

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.