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]: duplicate label in sp-progress-bar #4225

Open
1 task done
sdiverdi opened this issue Mar 27, 2024 · 0 comments
Open
1 task done

[Bug]: duplicate label in sp-progress-bar #4225

sdiverdi opened this issue Mar 27, 2024 · 0 comments

Comments

@sdiverdi
Copy link

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

sp-progress-bar, sp-field-label

Expected behavior

An sp-progress-bar that is initially created with an undefined label, and later has a label defined, should display the label the same as if it were initially created with that label.

Actual behavior

An sp-progress-bar that is initially created with an undefined label and later has a label added will display the label twice.

Screenshots

Initial state (first progress bar has undefined label):
before

Error state, after a new label has been provided for both progress bars, first progress bar has duplicate label:
after

What browsers are you seeing the problem in?

Chrome

How can we reproduce this issue?

  1. Go to https://codepen.io/sdiverdi/pen/XWQaVog
  2. Click the "change label" button
  3. See the first progress bar has a duplicated label

Sample code that illustrates the problem

https://codepen.io/sdiverdi/pen/XWQaVog

Logs taken while reproducing problem

No response

@sdiverdi sdiverdi added bug Something isn't working triage An issue needing triage labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants