#104 indexof change to includes

master
Agriya Dev5 2021-05-27 12:01:13 +05:30
parent a39adbf16a
commit adca890d17
1 changed files with 1 additions and 2 deletions

View File

@ -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