Skip to content
Browse files

Fix finding of the correct bonsai DOM node

  • Loading branch information...
1 parent 12ee985 commit 13b97b12b955c728fd1fc30333da51af37e90835 @davidaurelio davidaurelio committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/renderer/svg/svg_event_handlers.js
View
2 src/renderer/svg/svg_event_handlers.js
@@ -47,7 +47,7 @@ define([
* @return {Node}
*/
function findBonsaiObject(node) {
- while (node && (node.nodeType !== ELEMENT_NODE || node.hasAttribute('data-bs-id'))) {
+ while (node && (node.nodeType !== ELEMENT_NODE || !node.hasAttribute('data-bs-id'))) {
node = node.parentNode;
}
return node;

0 comments on commit 13b97b1

Please sign in to comment.
Something went wrong with that request. Please try again.