steps icon indicating copy to clipboard operation
steps copied to clipboard

Single steps are not rendered

Open mercteil opened this issue 3 years ago • 6 comments

React 18, Nextjs 12.3

import Steps from 'rc-steps';

import 'rc-steps/assets/index.css';


const { Step } = Steps;

const Tracking = () => {
  const [current, setCurrent] = useState(0);

  const onChange = (value) => {
    console.log('onChange:', current);
    setCurrent(value);
  };

  return (
    <>
      <Steps current={current} onChange={onChange}>
        <Step title="Step 1" description="This is a description." />
        <Step title="Step 2" description="This is a description." />
        <Step title="Step 3" description="This is a description." />
      </Steps>

      <Steps current={current} onChange={onChange} direction="vertical">
        <Step title="Step 1" description="This is a description." />
        <Step title="Step 2" description="This is a description." />
        <Step title="Step 3" description="This is a description." />
      </Steps>
    </>
  );
}

The single steps are not rendered within the Steps wrapper. image

mercteil avatar Oct 04 '22 15:10 mercteil

Same for me

devlukedreamstage avatar Oct 19 '22 20:10 devlukedreamstage

same for me

gegxen avatar Oct 25 '22 09:10 gegxen

same for me image

limerence19 avatar Nov 24 '22 06:11 limerence19

Please checkout the PR and tell me if this solves your problem

benyaminbeyzaie avatar Dec 24 '22 14:12 benyaminbeyzaie

Hi unfortunately still the same. I'm having the same issue. <Steps current={1}> <Steps.Step title="first" /> <Steps.Step title="second" /> <Steps.Step title="third" /> </Steps>

image

stepcellwolf avatar May 22 '23 15:05 stepcellwolf

https://github.com/react-component/steps/issues/333#issuecomment-1690534838

Ionshard avatar Aug 23 '23 19:08 Ionshard