Skip to content

Fix bug in reconcileSelection#773

Merged
trueadm merged 1 commit into
mainfrom
fix-selection-lost
Oct 27, 2021
Merged

Fix bug in reconcileSelection#773
trueadm merged 1 commit into
mainfrom
fix-selection-lost

Conversation

@trueadm

@trueadm trueadm commented Oct 27, 2021

Copy link
Copy Markdown
Collaborator

This fixes a selection/focus bug when editor.setRootElement() is called on init, and the root element already has focus. Before this PR, we'd reconcile the next selection, which is null and prematurely remove focus/selection to the root element.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 27, 2021
@trueadm trueadm merged commit a82a236 into main Oct 27, 2021
@trueadm trueadm deleted the fix-selection-lost branch October 27, 2021 22:22
acywatson pushed a commit that referenced this pull request Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants