mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Preserve selection on exiting owner mode
This commit is contained in:
@@ -383,7 +383,10 @@ function reduceOwnersState(store: Store, state: State, action: Action): State {
|
||||
case 'RESET_OWNER_STACK':
|
||||
ownerStack = [];
|
||||
ownerStackIndex = null;
|
||||
selectedElementIndex = null;
|
||||
selectedElementIndex =
|
||||
selectedElementID !== null
|
||||
? store.getIndexOfElementID(selectedElementID)
|
||||
: null;
|
||||
_ownerFlatTree = null;
|
||||
break;
|
||||
case 'SELECT_ELEMENT_AT_INDEX':
|
||||
|
||||
Reference in New Issue
Block a user