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
This commit is contained in:
Cédric Krier
2025-07-11 15:19:22 +02:00
parent 750bfe2045
commit 490fb564ea
+1
View File
@@ -3211,6 +3211,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;