diff --git a/src/commands/view/ComponentDrag.js b/src/commands/view/ComponentDrag.js index 823f86973..ded945c73 100644 --- a/src/commands/view/ComponentDrag.js +++ b/src/commands/view/ComponentDrag.js @@ -108,12 +108,14 @@ module.exports = { getGuidesStatic() { let result = []; const el = this.target.getEl(); + const { parentNode = {} } = el; each( - el.parentNode.children, + parentNode.children, item => (result = result.concat(el !== item ? this.getElementGuides(item) : [])) ); - return result; + + return result.concat(this.getElementGuides(parentNode)); }, getGuidesTarget() {