Skip to content

Deleting nested LIC w/ with multiple children doesn't remove bullet #1152

@cmditch

Description

@cmditch

Description
Pressing delete w/ the cursor at the beginning of a nested LIC (list item content) which contains multiple child elements doesn't remove the bullet.

Steps

  1. Format some of the words in the list item with rich text (bold, italic), or add a link. Anything to create more than just a single text child for a given list item.
  2. Place cursor at beginning of list item.
  3. Press delete.
sublist.deletion.bug.mov

Sandbox

https://codesandbox.io/s/plate-playground-v1-2mh1c

Expectation

Content is moved to parent list item (or sub-list item above the currently edited list-item) and the bullet is removed.

Environment

  • slate: see sandbox
  • slate-react: see sandbox
  • browser: chrome

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplugin:list-classicBulleted & ordered lists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions