#104 indexof change to includes
parent
a39adbf16a
commit
adca890d17
|
@ -392,8 +392,7 @@ export default {
|
||||||
const mouseTarget = e.target;
|
const mouseTarget = e.target;
|
||||||
|
|
||||||
const parents = svgCanvas.getParents(mouseTarget.parentNode);
|
const parents = svgCanvas.getParents(mouseTarget.parentNode);
|
||||||
|
if (parents.includes(svgcontent)) {
|
||||||
if (parents.indexOf(svgcontent) !== -1) {
|
|
||||||
// Connectable element
|
// Connectable element
|
||||||
|
|
||||||
// If child of foreignObject, use parent
|
// If child of foreignObject, use parent
|
||||||
|
|
Loading…
Reference in New Issue