Skip to content

Bug: Selection formatting/styling is lost when you indent a list #6476

@gigantedocil

Description

@gigantedocil

If you create a list item with some style, press enter to create a new item at the same level and then press tab you lose the formatting on the selection.

Lexical version: latest

Steps To Reproduce

  1. Create a list that has some styling, for example bold:

image

  1. Press enter to create a new list item of the same level (bold styling remains on selection.

image

  1. Press tab to indent the list item (bold styling disappears).

image

Link to code example:

Can easily be reproduced on the playground.

The current behavior

Selection formatting is lost after indenting a list item.

The expected behavior

Selection formatting is not lost after indenting a list item.

Impact of fix

Currently an important bug on my app is caused by this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions