Skip to content

Slate Editor Crashing semi randomly #7152

@DavidWells

Description

@DavidWells

Describe the bug

Slate editor crashes randomly with Error: Cannot resolve a DOM node from Slate node: {"text":""}

I've managed to track this down and reproduce it on https://demo.decapcms.org/#/collections/posts/entries/2024-03-20-post-number-20

To Reproduce

  1. Go to editor https://demo.decapcms.org/#/collections/posts/entries/2024-03-20-post-number-20
  2. In the body editor hit Shift + return and shift + return again, then they and delete that line
  3. Editor crashes
editor.crashing.mp4

Expected behavior
No crashes

Related

This was the only reference I could find for this error ianstormtaylor/slate#3930 but I'm unclear on how to resolve.

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