globocom/megadraft

Error when editing plugin blocks with movableBlocks prop active

mogavin opened this issue · 0 comments

Expected Behavior

Editing a plugin block should occur just like a text block, even with prop movableBlocks active.

Current Behavior

When editing a plugin block with prop movableBlocks active a component focus loss occurs, and the scroll bar is moved to the center of the screen.

Steps to Reproduce

  1. Render a MegadraftEditor component with prop movableBlocks with true value;
  2. Insert some plugin blocks (image, video);
  3. Try editing the text in any of the inserted blocks.