-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Combobox SelectedValue = null DisplayMember not match #21010
Copy link
Copy link
Closed
Labels
by-designThe behavior reported in the issue is actually correct.The behavior reported in the issue is actually correct.question
Description
Describe the bug
When the initial value of SelectedValue is null, the combobox does not have any option selected
To Reproduce
[ObservableProperty]
public List _comboboxItmes = new List()
{
new (){Id = null, Name = "All"},
new (){Id = 1, Name = "OPTION1"},
new (){Id = 2, Name = "OPTION2"}
};
[ObservableProperty]
private int? _comboboxSelectedValue = null;
Expected behavior
No response
Avalonia version
11.3.12
OS
Windows
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
by-designThe behavior reported in the issue is actually correct.The behavior reported in the issue is actually correct.question