From 37cca800261ad56a29890c52f2b5cdfd0c327ebe Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Mon, 24 May 2021 16:44:43 +0530 Subject: [PATCH] #104 jquery convert to javascript --- src/editor/extensions/ext-connector/ext-connector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/extensions/ext-connector/ext-connector.js b/src/editor/extensions/ext-connector/ext-connector.js index 50183c5b..cfc31792 100644 --- a/src/editor/extensions/ext-connector/ext-connector.js +++ b/src/editor/extensions/ext-connector/ext-connector.js @@ -393,7 +393,7 @@ export default { const parents = svgCanvas.getParents(mouseTarget.parentNode); - if ($.inArray(svgcontent, parents) !== -1) { + if (parents.indexOf(svgcontent) !== -1) { // Connectable element // If child of foreignObject, use parent