Browse Source

Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<>

pull/1778/head
wojciech krysiak 8 years ago
parent
commit
cdf8d1f8b4
  1. 2
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

2
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@ -376,7 +376,7 @@ namespace Avalonia.Controls.Primitives
break;
case NotifyCollectionChangedAction.Reset:
SelectedIndex = IndexOf(e.NewItems, SelectedItem);
SelectedIndex = IndexOf(Items, SelectedItem);
break;
}
}

Loading…
Cancel
Save