Ver Fonte

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

wojciech krysiak há 7 anos atrás
pai
commit
cdf8d1f8b4

+ 1 - 1
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;
             }
         }