Skip to content

Dynamic DOM slide issue? #411

Closed Answered by remy90
remy90 asked this question in Help
Dec 30, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This was simply an ordering issue. Latest items were not updated by the time reInit() was called. Still not sure why it worked at all but moving the reinit into the next button click resolved my issue:

  const handleNextClick = () => {
    emblaApi?.reInit();
    scrollNext();
  };

Many thanks for this package David 🙏

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davidjerleke
Comment options

Answer selected by remy90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants