From adca890d17203d7357ca2390ae688bc209317e4a Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Thu, 27 May 2021 12:01:13 +0530 Subject: [PATCH] #104 indexof change to includes --- src/editor/extensions/ext-connector/ext-connector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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