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 OverflowNode configuration #6027

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Fix OverflowNode configuration #6027

merged 3 commits into from
Aug 15, 2024

Conversation

zurfyx
Copy link
Member

@zurfyx zurfyx commented May 4, 2024

OverflowNode was badly configured, this was revealed by #6025. It is always inline and can't be empty. Surprisingly, the current configuration was passing all tests fine but the video below show some surprisingly bad behavior when we only fix isInline, we can't have dangling empty span.

Before:

Screen.Recording.2024-05-04.at.4.20.55.PM.mov

After:

Screen.Recording.2024-05-04.at.4.18.55.PM.mov

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

vercel bot commented May 4, 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 Aug 14, 2024 2:35pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 2:35pm

Copy link

github-actions bot commented May 4, 2024

size-limit report 📦

Path Size
lexical - cjs 29.38 KB (0%)
lexical - esm 29.24 KB (0%)
@lexical/rich-text - cjs 37.74 KB (0%)
@lexical/rich-text - esm 31.05 KB (0%)
@lexical/plain-text - cjs 36.41 KB (0%)
@lexical/plain-text - esm 28.42 KB (0%)
@lexical/react - cjs 39.59 KB (0%)
@lexical/react - esm 32.53 KB (0%)

@etrepum
Copy link
Collaborator

etrepum commented Aug 11, 2024

#6456 may also fix this incidentally because it adds a transform to prevent empty OverflowNode

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.

4 participants