Stop propagation of click event on button in tree view

If the button is going to be executed, the selection of the row must not change
so the propagation must be stopped before reaching the row.

Closes #14118
(grafted from b6496a9986e52e6573e45e422d5535362744938f)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2025-07-11 15:19:22 +02:00
1 parent f07f5f0792
commit d9b65cd5dd
1 file changed
+1
+1
View File
@@ -3063,6 +3063,7 @@
if (states.invisible || states.readonly) {
return;
}
event.stopImmediatePropagation();
button.el.prop('disabled', true); // state will be reset at display
var row = this.view.rows.find(function(row) {
return row.record == record;