Skip to content

FluentSelect SelectedOptionsChanged event not trigger when using manual options #1207

@kamazheng

Description

@kamazheng

Bug as title, if I change the manual options to Items parameter, the SelectedOptionsChanged can trigger.
(I have to use manual option, as I need to add @key for each options, the Items parameter is dynamic, if I update the items, the selected options will not update accordingly, will keep same position options selected)

<FluentSelect Appearance="Appearance.Filled"
              TOption="string"
              Multiple="true"
              Style="height:95%;overflow-y:auto;z-index:100"
              SelectedOptions="@selectedTableNames"
              SelectedOptionsChanged="tblsChanged">
    @foreach (var item in tableNames)
    {
        var tblName = "aaa";
        <FluentOption @key="@($"{tblName}-{item}")" TOption="string" Selected="@(selectedTableNames?.Contains(item)==true)">@item</FluentOption>
    }
</FluentSelect>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions