From ea2f7954937c2306b284e09cf08c6e7bffb9309c Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 13 Feb 2020 23:14:59 +0100 Subject: [PATCH] Update style on block drop in absolute mode --- src/utils/Droppable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Droppable.js b/src/utils/Droppable.js index 7f6bac868..fd0613683 100644 --- a/src/utils/Droppable.js +++ b/src/utils/Droppable.js @@ -84,7 +84,7 @@ export default class Droppable { if (!cancelled) { const comp = wrapper.append(content)[0]; const { left, top, position } = target.getStyle(); - comp.setStyle({ left, top, position }); + comp.addStyle({ left, top, position }); this.handleDragEnd(comp, dt); } target.remove();