소스 검색

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