Skip to content

Bug: tab insertion breaks format inheritance #8151

@kimseongyu

Description

@kimseongyu

Lexical version: 0.40.0

Steps To Reproduce

  1. Type bolded "hello" in the editor
  2. Move the cursor between "he" and "llo"
  3. Press the Tab key twice
  4. Move the cursor between the two tabs
  5. Start Typing any character

Link to code example: playground

The current behavior

issue.mov

The format disappears between the tabs.

The expected behavior

If a user inserts tabs within a formatted range, those tabs should maintain the formatting.

Impact of fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions