facebook / facebook/lexical

Bug: Text style not updated when inserting a new block of styled text

Open
#4,947 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

### When I copy a block of styled text and insert it into a new position and continue typing, new typed characters doesn't have the new style of the text block I copied but the old style from the text before
(It's quite hard to explain because of my poor English, you can watch the drive's video for more detail)
Is it a bug or a feature? Please suggest me how to fix this, thanks

Lexical version: 0.12.0 (Tested on Playground as well)

## Steps To Reproduce

1. Copy a block of styled text and insert it into another position that currently has different style
2. Start typing new text

Link to evidence: https://drive.google.com/file/d/1Rv2OJCs7X_3tDH6klC0EZVHdtaTSMKTD/view?usp=sharing

## The current behavior
The new typed text still has the old style, not the new style of the new inserted text block

## The expected behavior
The new typed text has the style of the new inserted text block

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.