facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.5k stars 1.45k forks source link

Bug: Selection is removed when changing style of 2 different nodes #6008

Open Danidude opened 2 weeks ago

Danidude commented 2 weeks ago

Lexical version: latest (02 May 2024)

Steps To Reproduce

  1. Select text with two different stylings
  2. Choose one new style for them both
  3. Selection is put at start of selected area.

Link to code example:

https://github.com/facebook/lexical/assets/1169254/d78d18bc-3f41-43cb-8558-9817388d20c1

The current behavior

Selection is removed

The expected behavior

Keep the selected area

StyleT commented 1 week ago

Hi! Sure! Go ahead ;)