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

[Bug][Stepper] Programmatically adding a step does not reconfigure the ProggressBar #2915

Closed
Yanko-Georgiev opened this issue Feb 27, 2025 · 1 comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Layout SEV: Low triaged mark the triaged issues with correct priority

Comments

@Yanko-Georgiev
Copy link
Collaborator

Yanko-Georgiev commented Feb 27, 2025

Description

The ProgressBar inside the Stepper does not update accordingly when the steps of the Stepper are programmatically increased.

Steps To Reproduce

  1. Open the following example: https://stackblitz.com/edit/react-w38drb5g?file=app%2Fapp.jsx
  2. Click the Add Step button
  3. Notice the issue

Screenshots or video

Image

Actual Behavior

The value of the Stepper and ProgressBar inside of it are not matching after a step is added to the Stepper.

Expected Behavior

The values for the Step and the ProgressBar should be the same.

Reported in TicketID: 1679865

@Yanko-Georgiev Yanko-Georgiev added Bug Item which indicates that something is not working KendoReact pkg:Layout SEV: Low triaged mark the triaged issues with correct priority labels Feb 27, 2025
@Yanko-Georgiev
Copy link
Collaborator Author

To ensure proper re-rendering of the component and all its parts when the steps change. You need to add the key property and reset it when the steps are updated:

https://stackblitz.com/edit/react-w38drb5g-wp5vlksz?file=app%2Fapp.jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Layout SEV: Low triaged mark the triaged issues with correct priority
Projects
None yet
Development

No branches or pull requests

1 participant