From d9b65cd5dd19df4f07f403315325f404781dbecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 11 Jul 2025 15:19:22 +0200 Subject: [PATCH] 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 --- sao/src/view/tree.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index c622338e0c..c237d2d173 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -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;