Skip to content

[lexical-rich-text] Bug Fix: Inherit format and style when inserting tab#8152

Merged
etrepum merged 1 commit intofacebook:mainfrom
kimseongyu:fix-tab-inserction-break-format-inheritance
Feb 19, 2026
Merged

[lexical-rich-text] Bug Fix: Inherit format and style when inserting tab#8152
etrepum merged 1 commit intofacebook:mainfrom
kimseongyu:fix-tab-inserction-break-format-inheritance

Conversation

@kimseongyu
Copy link
Copy Markdown
Contributor

Description

Current Behavior

When inserting tabs within formatted text, the newly created TabNode does not inherit the existing format or style from the selection. So any text typed between tabs is plain text.

Change in This PR

When handling INSERT_TAB_COMMAND, apply the selection's format and style to the new TabNode.

Closes #8151

Test plan

Before

issue.mov

After

after.mov

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Feb 19, 2026 8:35am
lexical-playground Ready Ready Preview, Comment Feb 19, 2026 8:35am

Request Review

@meta-cla meta-cla 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 Feb 19, 2026
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Feb 19, 2026
@etrepum etrepum added this pull request to the merge queue Feb 19, 2026
Merged via the queue into facebook:main with commit 8d64fa8 Feb 19, 2026
43 checks passed
@etrepum etrepum mentioned this pull request Feb 25, 2026
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. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: tab insertion breaks format inheritance

2 participants