From 09e09c6fb0f16eefbfd79fde5d8473c549f44afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 28 Nov 2021 13:50:40 +0100 Subject: [PATCH] Force to always redraw the row of the clicked button The display may not redraw the row and so reset the state of button if the record has not be modified like with an action button. issue10985 review367871002 --- src/view/tree.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/view/tree.js b/src/view/tree.js index 43b85a9939..7d2ad08fb5 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -2708,6 +2708,12 @@ return; } button.el.prop('disabled', true); // state will be reset at display + var row = this.view.rows.find(function(row) { + return row.record == record; + }); + if (row) { + row._drawed_record = null; // force redraw the row + } this.view.screen.button(this.attributes); } });