akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.77k stars 2.1k forks source link

UI is broken when changing version from 0.29.0 -> 0.30.2 with one image. #2359

Open gonta1026 opened 7 months ago

gonta1026 commented 7 months ago

issue

When multiple images are set up, the UI is not broken, but when a single image is set up, the UI is broken. The situation is that we are reverting the library version back to 0.29.0 at one point.

code

        <Slider>
          {["https://placehold.jp/500x300.png"].map((url, index) => (
            <img key={index} src={url} alt={`slide-${index}`} />
          ))}
        </Slider>

image

スクリーンショット 2024-03-21 17 06 23

version

rodrigo-arias commented 5 months ago

I think it's the same as https://github.com/akiran/react-slick/issues/2337