diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 2dee0a6e4..eb62e49b0 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -120,6 +120,8 @@ export default { }, updateGuides(guides) { + const { editor } = this; + (guides || this.guides).forEach(item => { const { origin } = item; const { top, height, left, width } = editor.Canvas.getElementPos(origin);