Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing ItemsSource selects the first item #27

Closed
tmijail opened this issue Apr 20, 2023 · 1 comment · May be fixed by #29
Closed

Changing ItemsSource selects the first item #27

tmijail opened this issue Apr 20, 2023 · 1 comment · May be fixed by #29

Comments

@tmijail
Copy link
Contributor

tmijail commented Apr 20, 2023

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.

@vain0x
Copy link
Owner

vain0x commented Apr 22, 2023

Thank you! Released in v1.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants