Skip to content

Changing ItemsSource selects the first item #27

@tmijail

Description

@tmijail

Current behaviour:

Since the 1.5 update, whenever ItemsSource is changed, SelectedItem is set to the first item in ItemsSource. This overwrites any selection that the user might have previously made.

AutoCompleteComboBox.bug.mp4

Expected behaviour:

If SelectedItem exists in the new ItemsSource, it shouldn't change. If it doesn't, the selection should be cleared.

Steps to reproduce:

See the demo in this branch. Specifically, this commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions