Skip to content

Commit f96402a

Browse files
committed
Fix: ArgumentOutOfRange when deleting item from BindableListView
1 parent 166062a commit f96402a

File tree

1 file changed

+1
-1
lines changed
  • src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/UITK/BindableUIElements

1 file changed

+1
-1
lines changed

src/UnityMvvmToolkit.UnityPackage/Assets/Plugins/UnityMvvmToolkit/Runtime/UITK/BindableUIElements/BindableListView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private void BindItem(VisualElement item, int index)
9090

9191
private void UnbindItem(VisualElement item, int index)
9292
{
93-
UnbindItem(item, index, _itemsSource.Value[index], _objectProvider);
93+
item.ResetBindingContext(_objectProvider, true);
9494
}
9595

9696
private void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

0 commit comments

Comments
 (0)