From 0d91111ef45ee6b0e2310cc3def25064686e07cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 Feb 2026 17:06:41 +0100 Subject: [PATCH] Select option on double click in selection dialog The form submit event is triggered when the radio div is double clicked. The radio elements are put in a form-group to restore margin since 81bc564e03e0. And the option is required to submit the form. Closes #14616 --- sao/src/common.js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/sao/src/common.js b/sao/src/common.js index 34412ebf55..928c27d3fc 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -189,7 +189,15 @@ dialog.modal.uniqueId(); keys.forEach(function(k, i) { + let checked; + if (!default_) { + checked = !i; + } else { + checked = values[keys[i]] == default_; + } jQuery('
', { + 'class': 'form-group', + }).append(jQuery('
', { 'class': 'radio' }).append(jQuery('