Browse Source

Define editor first

component.setDragMode('absolute') and then start dragging, you'd get a lot of
`editor is not defined` errors.
pull/2371/head
Emil Sedgh 7 years ago
parent
commit
5e6bc48dea
  1. 2
      src/commands/view/ComponentDrag.js

2
src/commands/view/ComponentDrag.js

@ -120,7 +120,7 @@ export default {
},
updateGuides(guides) {
(guides || this.guides).forEach(item => {
const { editor } = this(guides || this.guides).forEach(item => {
const { origin } = item;
const { top, height, left, width } = editor.Canvas.getElementPos(origin);

Loading…
Cancel
Save