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

Fix getBounds of empty text nodes #3491

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Fix getBounds of empty text nodes #3491

merged 1 commit into from
Nov 29, 2021

Conversation

luin
Copy link
Member

@luin luin commented Nov 29, 2021

This PR fixes the exception of Error: Failed to execute 'setStart' on 'Range': The offset 4294967295 is larger than the node's length.

It happens when the Text node is empty, which is possibly caused by the Container#optimize() issue mentioned in #3489.

@jhchen jhchen merged commit 7b3263b into develop Nov 29, 2021
@jhchen jhchen deleted the zh-fix-4294967295 branch November 29, 2021 05:18
rockwotj pushed a commit to shortwave/quill that referenced this pull request Dec 6, 2021
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