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
This commit is contained in:
Cédric Krier committed 2025-05-28 18:11:23 +02:00
1 parent bd4b030518
commit 45d3a25343
1 file changed
+3
+3
View File
@@ -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);