Skip to content

Using editor.updateBlock while changing the content of the block deletes the children #1101

@mfanselmo

Description

@mfanselmo

Describe the bug

When using the editor API editor.updateBlock and changing the block's content, the children are removed. I think this is unexpected behavior but please let me know if there is a reason for this, I have not looked very into detail in the code

To Reproduce

Screen.Recording.2024-09-24.at.1.49.47.PM.mov

https://stackblitz.com/edit/github-7jn7g7?file=SideMenuItems.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions