Skip to content

[dev-v5] fix: selection of custom items in FluentSelect #4295

@MarvinKlein1508

Description

@MarvinKlein1508

🐛 Bug Report

Our Customize the items for FluentSelect in v5 demo is broken.

When loading the page the selected item is not shown in the component itself.

Image

When you select a value then the wrong one will be displayed.

Image

Please assign me in the PR for this as well. I'd like to understand the root of this issue.

💻 Repro or Code Sample

https://fluentui-blazor-v5.azurewebsites.net/List/Select

🤔 Expected Behavior

I expect the item to be displayed right away and the correct item when I select one.

😯 Current Behavior

No item will be displayed on initialization and the wrong one once you select an item.

🔦 Context

Perhaps the underlying webcomponent has been changed? I've noticed that the component uses

protected virtual string DropdownType => "dropdown";

although it is a select.

The official component is divided into three different types:
https://storybooks.fluentui.dev/web-components/?path=/docs/components-dropdown--docs

Image

Metadata

Metadata

Assignees

Labels

bugA bugv5For the next major version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions