Skip to content

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

Open
kimseongyu wants to merge 1 commit intofacebook:mainfrom
kimseongyu:fix-tab-inserction-break-format-inheritance
Open

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

Conversation

@kimseongyu
Copy link
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

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
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.

Bug: tab insertion breaks format inheritance

1 participant

Comments