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 columns layout update command #5484

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

ivailop7
Copy link
Collaborator

The current update command for the columns layout is broken when going to a lower column count. The current method instead of deleting, actually appends and gets the node in an invalid state. This fixes the update operation, so when going from 3 columns to 2, it will delete the last column and preserve the content as is in the first 2.

Copy link

vercel bot commented Jan 14, 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 Jan 14, 2024 5:41pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2024 5:41pm

@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 Jan 14, 2024
Copy link
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections but note that this changes the behavior - instead of transferring the children we now delete them

@ivailop7
Copy link
Collaborator Author

No objections but note that this changes the behavior - instead of transferring the children we now delete them

That's fine, this is the deletion method, we don't want to keep them.

@ivailop7 ivailop7 merged commit 53672e4 into facebook:main Jan 15, 2024
42 of 45 checks passed
@ivailop7 ivailop7 deleted the fix_columns_layout_update branch January 15, 2024 23:36
amanharwara pushed a commit to standardnotes/lexical that referenced this pull request Jan 18, 2024
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