diff --git a/src/editor/extensions/ext-connector/ext-connector.js b/src/editor/extensions/ext-connector/ext-connector.js index 34a7a76e..b9f05266 100644 --- a/src/editor/extensions/ext-connector/ext-connector.js +++ b/src/editor/extensions/ext-connector/ext-connector.js @@ -392,8 +392,7 @@ export default { const mouseTarget = e.target; const parents = svgCanvas.getParents(mouseTarget.parentNode); - - if (parents.indexOf(svgcontent) !== -1) { + if (parents.includes(svgcontent)) { // Connectable element // If child of foreignObject, use parent