Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component not working for any version above 4.1.4 #333

Open
AlexMCrick opened this issue Aug 18, 2023 · 3 comments
Open

Component not working for any version above 4.1.4 #333

AlexMCrick opened this issue Aug 18, 2023 · 3 comments

Comments

@AlexMCrick
Copy link

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.

@Ionshard
Copy link

Ionshard commented Aug 23, 2023

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',
      },
    ]}
  />

@srihari11235
Copy link

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?

@yoyo837
Copy link
Member

yoyo837 commented Dec 22, 2023

fix site: #346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants