akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.73k stars 2.1k forks source link

Slides are overlaping by DOM - Chakra-ui + React-slick #2287

Open isabellasantiago opened 1 year ago

isabellasantiago commented 1 year ago

here's my code example and a video that shows that second slide overlaps the first one (ps: when you pass the cursor where second button its behave as if second button were in screen and it happens because its overlaps the DOM)

Code

React Slick Problem - CodeSandbox.webm

isabellasantiago commented 10 months ago

@akiran can you help?

akiran commented 8 months ago

This issue is the same as #2076

CSS solution suggested by @ guitassinari is working. https://github.com/akiran/react-slick/issues/2076#issuecomment-984815962

.slick-slide:not(.slick-active) {
    pointer-events: none;
}

We will find a permanent fix that doesn't require additional CSS soon.