Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REPLACE_JSX_ELEMENT to preserve UID of element-to-be-replaced (#5976)
**Problem:** When we Replace This or Replace Everything a selected element, the selection is lost. **Fix:** Turns out the code was straight up cleaning selected views to []. **Commit Details:** - REPLACE_JSX_ELEMENT no longer changes EditorState.selectedViews - REPLACE_JSX_ELEMENT now takes the UID of the old element, and sets it as the UID of the new element
- Loading branch information