Skip to content

Bug: Triple-click selections have incorrect format #3784

@Awjin

Description

@Awjin

#2648 has related discussion around how triple-click selection should behave, but this is a separate bug.

Lexical version: 0.7.6

Steps To Reproduce

  1. Create two paragraphs.
  2. Triple-click to select the first paragraph.
  3. Set the format to "bold".

Current behavior

selection.hasFormat("bold") === false

Expected behavior

selection.hasFormat("bold") === true
Screen.Recording.2023-01-26.at.14.42.40.mov

Metadata

Metadata

Assignees

No one assigned

    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