Skip to content

[lexical] Fix: Consecutive Linebreak insertion resets selection format#8222

Merged
etrepum merged 11 commits intofacebook:mainfrom
Jynx2004:new_b
Mar 15, 2026
Merged

[lexical] Fix: Consecutive Linebreak insertion resets selection format#8222
etrepum merged 11 commits intofacebook:mainfrom
Jynx2004:new_b

Conversation

@Jynx2004
Copy link
Contributor

Description

Instead of sending value 0 as a static value we take the current format from selection.format and pass it to the respective function responsible for format change.
As a result the format gets passed on between multiple linebreaks.

Closes #8160

Before

Screenshot 2026-02-26 004335

After

Screenshot 2026-02-26 004320

@vercel
Copy link

vercel bot commented Mar 14, 2026

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 15, 2026 5:39am
lexical-playground Ready Ready Preview, Comment Mar 15, 2026 5:39am

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 Mar 14, 2026
Co-authored-by: Bob Ippolito <bob@redivi.com>
@etrepum etrepum added this pull request to the merge queue Mar 15, 2026
Merged via the queue into facebook:main with commit ad547f2 Mar 15, 2026
37 checks passed
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: linebreak insertion breaks format inheritance

2 participants