Skip to content

Unable to toggle list item when all content is selected (Ctrl + A) #7562

@n-hor

Description

@n-hor

Affected Packages

ListItem

Version(s)

3.20

Bug Description

The issue is reproducible in the official example:
https://tiptap.dev/docs/editor/extensions/nodes/list-item

Steps to reproduce:

  • Clear all editor content.
  • Create a list item with some text.
  • Press Ctrl + A to select all content.
  • Try to toggle the list item.

Actual result:
It is impossible to toggle the list item when all content is selected.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

The content should no longer be a list after toggling (i.e., it should be converted back to a normal paragraph).

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions