Issue #2904Opened July 20, 2020by RJCAM1 reactions

BUG: dragging components in preview mode enables editor mode

Question

We can reproduce the bug from the demo

Current Behavior: chrome-capture

Expected Behavior: We should not be able to drag/move components when in preview mode.

Answers (1)

artfJuly 21, 20201 reactions

Will be fixed in the next release. For now, you can patch it on your own, in this way:

const preventDrag = (opts) => opts.abort = 1;
editor.on('run:core:preview', () => {
	editor.on('run:tlb-move:before', preventDrag);
});
editor.on('stop:core:preview', () => {
	editor.off('run:tlb-move:before', preventDrag);
});

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.