akiran / akiran/react-slick

.slick-active not on correct slicks

Open
#1,183 7 comments 0 reactions 0 assignees View on GitHub
priority: High
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

https://codesandbox.io/s/jlk8n3z9v9

1. Inspect the elements, found `slick-active` class name is added properly to the first 4 slicks.
2. Click `>` arrow button to flip to next page.
3. Inspect again, now `slick-active` class is added to elements outside the viewport.

We can only detect the active items on the viewport when we can see accurately which ones are active slicks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.