mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-18 18:49:32 +00:00
Fixed shifting of selected indexes when removing an object. You don't want to shift the index removed, just those above it
This commit is contained in:
parent
8c29c7f4ed
commit
e95ac5e170
@ -384,7 +384,7 @@ triggerChangeNotificationsForDependentKey:@"selectionIndex"];
|
||||
[self didChangeValueForKey:@"arrangedObjects"];
|
||||
|
||||
[self willChangeValueForKey:@"selectionIndexes"];
|
||||
[_selectionIndexes shiftIndexesStartingAtIndex:pos by:-1];
|
||||
[_selectionIndexes shiftIndexesStartingAtIndex:pos+1 by:-1];
|
||||
[self didChangeValueForKey:@"selectionIndexes"];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user