Skip to content

Bug: Block selection from start to end affects next block when converted to other blocks #2648

@Piliuta

Description

@Piliuta

Lexical version: 0.3.7

Steps To Reproduce

  1. Open the playground page https://playground.lexical.dev/
  2. Create two paragraphs
  3. Select the first one (from the very end, e.g. use double-click)
  4. Apply any block format (e.g. heading or quote)
Screen.Recording.2022-07-15.at.15.23.00.mov

The current behavior

The selected paragraph and the paragraph next to it are converted into the new format.

The expected behavior

Only the selected paragraph is converted into the format. The paragraph next to it remains as is.

Metadata

Metadata

Labels

all-platforms-bugcoreReconciler, DOM, Selection, Node, Events, Composition

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions