From 45d3a253433241f959e440c2ef77c2bde7f89660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 28 May 2025 18:11:23 +0200 Subject: [PATCH] Unselect other rows when radio button of row is selected The selection of a radio button, deselect automatically the other radio button so we must update the selection of other rows to remove the selected class. Closes #14044 --- sao/src/view/tree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sao/src/view/tree.js b/sao/src/view/tree.js index bf714bfdce..b4205d84e9 100644 --- a/sao/src/view/tree.js +++ b/sao/src/view/tree.js @@ -2061,6 +2061,9 @@ }, selection_changed: function() { var is_selected = this.is_selected(); + if (this.tree.selection_mode == Sao.common.SELECTION_SINGLE) { + this.tree.select_records(null, null); + } this.set_selection(is_selected); if (is_selected) { this.tree.select_changed(this.record);