akiran / react-slick

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

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

Open gonta1026 opened 3 months ago

gonta1026 commented 3 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 3 weeks ago

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