From 35e2b0985892ae7239bdb0b4343fb502e68cccf1 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sun, 2 Jun 2019 19:20:48 +0200 Subject: [PATCH] Reset dragResult on drag start --- src/block_manager/view/BlockView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/block_manager/view/BlockView.js b/src/block_manager/view/BlockView.js index ba93aff09..b5c15411a 100644 --- a/src/block_manager/view/BlockView.js +++ b/src/block_manager/view/BlockView.js @@ -76,6 +76,7 @@ module.exports = Backbone.View.extend({ const content = model.get('content'); const isObj = isObject(content); const data = isObj ? JSON.stringify(content) : content; + em.set('dragResult'); // Note: data are not available on dragenter for security reason, // we have to use dragContent as we need it for the Sorter context