Skip to content

Commit

Permalink
Remove default value selection behaviour from Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Jul 13, 2024
1 parent 53eba7a commit 776133a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/UraniumUI/Controls/Dropdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ protected virtual void OnItemsSourceChanged(IList oldValue, IList newValue)
{
newObservable.CollectionChanged += ItemsSource_CollectionChanged;
}

if (SelectedItem is null && ItemsSource.Count > 0)
{
SelectedItem = ItemsSource[0];
Text = SelectedItem.ToString();
}
}

private void ItemsSource_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Expand Down

0 comments on commit 776133a

Please sign in to comment.