steps icon indicating copy to clipboard operation
steps copied to clipboard

Component not working for any version above 4.1.4

Open AlexMCrick opened this issue 2 years ago • 3 comments

Not sure if there was a breaking syntax change between versions 4 and 5 that is causing this, but I upgraded from 4.1.4 to 6.0.1 and it broke rc-steps in my project. The container div shows up but there is no content and css height is 0 px. I downgraded to 5.0.0 to see if that fixed anything and I got the same result. Downgrading again to 4.1.4 renders my steps implementation normally again.

AlexMCrick avatar Aug 18 '23 17:08 AlexMCrick

Haha, I am here for the same issue ... I actually took a dive into the code and I am quite shocked! It looks like for v5 they changed the API to use steps prop instead of using Step components through children but never updated the README. Additionally they continue to allow you to pass children to the Steps component even though it is never used.

Here is how it's supposed to be used now:

<Steps
    items={[
      {
        title: 'first',
      },
      {
        title: 'second',
      },
      {
        title: 'third',
      },
    ]}
  />

Ionshard avatar Aug 23 '23 19:08 Ionshard

I faced the same.

The provided example site is also not working : https://react-component.github.io/steps/

Is there any sample implementation I can take a look at?

srihari11235 avatar Dec 22 '23 13:12 srihari11235

fix site: #346

yoyo837 avatar Dec 22 '23 15:12 yoyo837