[BUG]: Cancelling block drag in IE breaks canvas functionality.
Question
I'm seeing this issue locally and on the GrapesJS demo when using Internet Explorer. If you drag a block over the canvas and attempt to cancel the drag by either dragging the block back to the starting container, or by pressing escape, a new component is still added to the canvas and the canvas highlighting and toolbar stop working. Dragging another block onto the canvas without cancelling it restores the functionality.
Expected Behavior: After dragging a text block over the canvas, pressing escape or returning the block to the block menu should not add a component to the Editor.
Actual behavior: After dragging a text block over the canvas, pressing escape or returning the block to the block menu adds a text component to the editor and the component highlighting and toolbar no longer display.
Steps to Reproduce: Open the GrapesJS HTML demo in Internet Explorer 11. Click the Text block and drag it over the default header section. Without releasing the mouse button, press escape. Or, drag the text block back to it's starting position (observe that the canvas placement cursor does not dissapear) and release the mouse button. Hover your mouse over an existing component in the editor and it will no longer highlight. Click an existing component in the editor and it will not be selected and the toolbar will not be displayed.
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #2207
[BUG]: Can't drag component if there is some space on top/left with Mode Absolute
Given the following code example... Results in no ability to drag and drop elements to correct position using drag icon on the panel. See F...
Issue #1936
Absolute/Designer mode
Hi guys, this issue is an overview of what is it, what is done, what to do and nice-to-have to complete the Designer Mode feature.Preface S...
Issue #3515
BUG: gjs-selected Style is Hardcoded
This definition: https://github.com/artf/grapesjs/blob/88249c38577852dc3c42047356a70a12066ee6ca/src/canvas/view/FrameView.js#L303-L306 is a...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.