Skip to content

Dragging custom block show Error: block type does not match #1694

Closed

Description

@nitan-jana

Describe the bug
If two different types of custom blocks are one after another, dragging one of them is causing the error 'Block type does not match'

To Reproduce
Here's a demo sandbox, try to drag the bottom one beside the top one

2025-05-18.08-42-03.online-video-cutter.com.1.mp4

Misc

  • Node version: 22.13.1
  • Package manager: pnpm(10.10.0), npm(11.1.0)
  • Browser: Zen(firefox), chrome
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. CarlsonCarlson commented on Sep 19, 2025

    @CarlsonCarlson

    @NitanJana i ran into the same error message while using updateBlock or replaceBlock. I ended up creating my own function to do the same thing that did insert THEN remove THEN cursor placement, and that did the trick. Hope this helps! I worked on that bug for HOURS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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