lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: The first letter took different format when typing after selecting 2 different style text

Open trinhvinhtruong96 opened this issue 3 years ago • 1 comments

Lexical version: v0.12.0

Steps To Reproduce

  1. Active bold button and type some bold text
  2. Inactive bold button and type some normal text
  3. Select all bold and normal text
  4. type new text

Link to code example: https://playground.lexical.dev/

The current behavior

Only the first letter of new text get bold chrome-capture-2023-9-10

The expected behavior

The first letter of the new text should have the same format as the other

trinhvinhtruong96 avatar Oct 10 '23 04:10 trinhvinhtruong96

The original symptom (only the first character inheriting bold) no longer reproduces on main — PR #8069 and PR #8162 fixed this by ensuring all replacement text inherits the first node's format consistently. This issue can be closed as fixed.

mayrang avatar Jul 20 '26 09:07 mayrang