Fix issue #714 bubbling event when hitting a tree control group (#3761)

This commit is contained in:
Sam El-Husseini
2020-03-23 16:32:27 -07:00
committed by GitHub
parent 7f9539e64b
commit c7620bc3fc

View File

@@ -372,6 +372,10 @@ Blockly.tree.TreeControl.prototype.getNodeFromEvent_ = function(e) {
if (target == this.getElement()) {
break;
}
// Don't bubble if we hit a group. See issue #714.
if (target.getAttribute('role') == Blockly.utils.aria.Role.GROUP) {
return null;
}
target = target.parentNode;
}
return null;