React-slick: Fade with Links components only shows the last Link

Created on 24 Mar 2016  路  4Comments  路  Source: akiran/react-slick

It fades correctly and the content is changing, but if there is a Link in each slide, only the last Link will be clicked.
Here I modified jsfiddle to show an example https://jsfiddle.net/20bumb4g/166/

stale

Most helpful comment

I solved my problem by adding

.slick-initialized .slick-slide.slick-active {
  z-index: 1;
}

in my css.

All 4 comments

Same problem. It looks like the hidden slides have an opacity of 0, but are still displayed (display: block;), so interaction is only possible with the last slide which is on top.

I solved my problem by adding

.slick-initialized .slick-slide.slick-active {
  z-index: 1;
}

in my css.

Another way would be to add pointer-events: none; to hidden (opacity: 0) slides.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings