Limit editable tree click event to the tab

This permits the navigation between tabs.

Closes #14393
(grafted from 9fe27176548921f8d056f006940256a68472ef42)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier
2025-11-26 21:34:50 +01:00
parent ff0c7c86a8
commit 139db54944
+4 -2
View File
@@ -1811,9 +1811,11 @@
return;
}
body = listener = jQuery(document.body);
body = jQuery(document.body);
if (body.hasClass('modal-open')) {
listener = this.tree.el.parents('.modal').last();
} else {
listener = this.tree.el.parents('.tab-pane').last();
}
var handler = function(event_) {
if ((event_.currentTarget == body[0]) &&
@@ -1826,7 +1828,7 @@
event_.stopPropagation();
return;
}
body.off('click.sao.editabletree');
listener.off('click.sao.editabletree');
this.tree.edit_row(null);
return true;
}.bind(this);