From 490fb564ea364d58a2e99a2d4107bae81b946bd5 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 --- 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 2a878061dc..064f512e1c 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -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;