Skip to content

[Bug]: Picker does not keep up with changes to icons in its menu items #5081

Open
@estollnitz

Description

Code of conduct

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

Impacted component(s)

Picker

Expected behavior

When there's a change to the src attribute of an sp-icon used within a menu item, the selected item displayed by the picker should update to reflect the modified icon.

Actual behavior

Picker displays a stale icon associated with the selected menu item when the icon has changed to a new src value. The menu items shown in the popover are correct; only the copy shown in the picker button itself is stale.

Screenshots

Image

What browsers are you seeing the problem in?

Firefox, Chrome, Safari, Microsoft Edge

How can we reproduce this issue?

See the sample code below. It displays repro steps that are easy to follow.

Sample code or abstract reproduction which illustrates the problem

https://studio.webcomponents.dev/edit/wF3pii8z9xOpdkyufNqu/src/index.ts?p=stories

Severity

SEV 3

Logs taken while reproducing problem

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions