lexical
lexical copied to clipboard
Bug: The first letter took different format when typing after selecting 2 different style text
Lexical version: v0.12.0
Steps To Reproduce
- Active bold button and type some bold text
- Inactive bold button and type some normal text
- Select all bold and normal text
- type new text
Link to code example: https://playground.lexical.dev/
The current behavior
Only the first letter of new text get bold
The expected behavior
The first letter of the new text should have the same format as the other
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.