Skip to content

Commit

Permalink
fix(ContentControl): set Content null when using ComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed May 25, 2023
1 parent 492742f commit 1eaea2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Primitives/Selector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ public int SelectedIndex

private static object CoerceSelectedIndex(DependencyObject dependencyObject, object baseValue)
{
if (baseValue == null)
{
return -1;
}

var owner = (Selector)dependencyObject;
var desiredIndex = (int)baseValue;
if (desiredIndex == -1)
Expand Down

0 comments on commit 1eaea2a

Please sign in to comment.