فهرست منبع

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

wojciech krysiak 7 سال پیش
والد
کامیت
cdf8d1f8b4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

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