davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.42k stars 164 forks source link

Library crash when using breakpoints #519

Closed hamidrezahanafi closed 1 year ago

hamidrezahanafi commented 1 year ago

Bug is related to

Embla Carousel version

Describe the bug

CodeSandbox

https://codesandbox.io/s/embla-carousel-arrow-dots-react-forked-h4lgy6?file=/src/js/index.tsx

Steps to reproduce

You should see the error on codesandbox

Expected behavior

Additional context

davidjerleke commented 1 year ago

Hi @hamidrezahanafi,

Thank you for your complete bug report. I can confirm that this is a bug. I will create a fix for this and let you know when I've done so.

Best, David

davidjerleke commented 1 year ago

To be released with v8.0.0-rc09.

davidjerleke commented 1 year ago

@hamidrezahanafi I've released a bug fix with v8.0.0-rc09. Give it a try and let me know if it's working as intended now.

hamidrezahanafi commented 1 year ago

Confirmed, it's fixed and working as expected with v8.0.0-rc09. Thank you!