nuka-carousel icon indicating copy to clipboard operation
nuka-carousel copied to clipboard

Empty slide rendered with false conditional

Open victorakioz opened this issue 3 years ago • 0 comments

Bugs and Questions

Describe Your Environment

  • What version of nuka-carousel are you using? 5.2.0
  • What version of React are you using? 18.2.0
  • What browser are you using? Brave

Describe the Problem

When having a slide that should be conditionally rendered, if false an empty slide is rendered instead of none.

Code sandbox reproduction: https://codesandbox.io/s/heuristic-stonebraker-3pn8jc?file=/src/App.js:233-383

Expected behavior: Not having the empty slide when a condition is false

Actual behavior: Empty slide being rendered.

victorakioz avatar Aug 04 '22 20:08 victorakioz