React-slick: slick track overflow body element

Created on 24 Jun 2019  路  3Comments  路  Source: akiran/react-slick

I know how to solve this problem what I wanted to open an issue anyway because maybe somebody is having the same problem and because I think is a bug.
If you create a slider without any style it overflows the body (and the container if any).
You fix this by adding padding. I finded the solution in the playground codesandbox provided in the readme file.

Guidelines for posting a new issue

  • Please replicate your issue with this CodeSandBox and provide a link to it along with the issue description

https://codesandbox.io/s/3msrb

Most helpful comment

Also worked for me
.slick-initialized { overflow: hidden; }

All 3 comments

Also worked for me
.slick-initialized { overflow: hidden; }

For me, were the arrows that are displayed by default outside the slide, the overflow worked but also overriding the right property for .slick-next, or set arrows: false

.slick-initialized { overflow: hidden; }

this worked liked a charm, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ramyatrouny picture ramyatrouny  路  3Comments

AlmogRnD picture AlmogRnD  路  4Comments

Exomnius picture Exomnius  路  3Comments

PolGuixe picture PolGuixe  路  3Comments

artemidas picture artemidas  路  4Comments