Skip to content

Bug: Triple-click make wrong selection #7592

@wataru-chocola

Description

@wataru-chocola

Lexical version: 0.31.2

Steps To Reproduce

  1. In Playground, create Code block and input multilines.
  2. Triple-click any text.

Image

The current behavior

Triple-click selects the whole parent element of the clicked line.

The expected behavior

Triple-click selects the clicked line.

Impact of fix

This bug affects triple-click selections when selected line is in multiline container element such as:

  • QuoteNode in RichText mode
  • CodeNode in RichText mode
  • Anything in PlainText mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    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