Skip to content

Use updated docRoot count in removeRootElementEvents#5847

Merged
thegreatercurve merged 1 commit intomainfrom
bug/selection-bug
Apr 8, 2024
Merged

Use updated docRoot count in removeRootElementEvents#5847
thegreatercurve merged 1 commit intomainfrom
bug/selection-bug

Conversation

@thegreatercurve
Copy link
Copy Markdown
Contributor

@thegreatercurve thegreatercurve commented Apr 8, 2024

Refactored in #5070, this is introducing some subtle bugs internally.

We should be using the updated documentRootElementsCount before deciding whether or not to remove the selectionchange listener, to make the logic consistent with the old implementation.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2024 10:37am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2024 10:37am

@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 Apr 8, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 26.77 KB (0%) 536 ms (0%) 119 ms (+500.14% 🔺) 655 ms
packages/lexical-rich-text/dist/LexicalRichText.js 39.14 KB (+0.01% 🔺) 783 ms (+0.01% 🔺) 155 ms (+188.65% 🔺) 938 ms
packages/lexical-plain-text/dist/LexicalPlainText.js 39.11 KB (+0.01% 🔺) 783 ms (+0.01% 🔺) 189 ms (+235.36% 🔺) 971 ms

@thegreatercurve thegreatercurve marked this pull request as ready for review April 8, 2024 10:39
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.

3 participants