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

enriquelopez-atlas picture enriquelopez-atlas  路  3Comments

vugman picture vugman  路  3Comments

briziel picture briziel  路  3Comments

laveesingh picture laveesingh  路  3Comments

eternalsky picture eternalsky  路  3Comments