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

CharacterLimit prefer replace over insertBefore #6032

Merged
merged 2 commits into from
May 5, 2024
Merged

Conversation

zurfyx
Copy link
Member

@zurfyx zurfyx commented May 5, 2024

So I was just minding my business adding this plugin #6025 when I found one bug leading to another... I won't fix this one now but at least I'm providing a workaround here and a tracking issue.

The root cause here appears to be element selection, which needs to be recomputed when nodes are removed and currently neither insertBefore nor removeFromParent do it. #6031

@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 May 5, 2024
Copy link

vercel bot commented May 5, 2024

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

Name Status Preview Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview May 5, 2024 6:57pm
lexical-playground ✅ Ready (Inspect) Visit Preview May 5, 2024 6:57pm

Copy link

github-actions bot commented May 5, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 23.7 KB (0%) 475 ms (0%) 364 ms (-21.53% 🔽) 838 ms
packages/lexical-rich-text/dist/LexicalRichText.js 34.35 KB (0%) 687 ms (0%) 1.2 s (-2.29% 🔽) 1.8 s
packages/lexical-plain-text/dist/LexicalPlainText.js 34.29 KB (0%) 686 ms (0%) 1.1 s (-12.5% 🔽) 1.8 s

@zurfyx zurfyx merged commit cd533aa into main May 5, 2024
45 checks passed
@zurfyx zurfyx deleted the characterlimit1234 branch May 5, 2024 19:37
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