Skip to content

fix: select component fails to display initially selected value #5425

@scomea

Description

@scomea

🐛 Bug Report

When used in a data bound card component a user found that the value of an initially selected option was not being displayed.

💻 Repro or Code Sample

The component's template had a select with options that were bound to the components observable properties

    <fluent-select>
        <fluent-option selected>
            ${x => x.someValue}
      </fluent-option>
        <fluent-option>
             ${x => x.someOtherValue}
        </fluent-option>
   </fluent-select>

With this markup the select did not display an initial value. It appears that select identifies the initially selected option and attempts to grab its value before the binding has resolved.

🤔 Expected Behavior

Initial value displays.

😯 Current Behavior

Initially selected value does not display

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions