Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not restore cached selection when call select #2075

Merged
merged 4 commits into from
Sep 20, 2023
Merged

Conversation

JiuqingSong
Copy link
Collaborator

The core API select will trigger onFocus event. Then DOMEventPlugin handles this event and restore a cached selection.

Since we know we are calling select and passing in a selection range, we should skip selecting the cached selection.

This can fix some weird selection behavior for Content Model editor with shadow edit.

@JiuqingSong JiuqingSong merged commit 187e032 into master Sep 20, 2023
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/select branch September 20, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants