spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

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

Open sdiverdi opened this issue 1 year ago • 0 comments
trafficstars

Code of conduct

  • [X] 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 avatar Mar 27 '24 16:03 sdiverdi