From 6fbd38e9d50cbad1294accc6f94f061ee0807c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Wed, 23 Sep 2026 17:59:29 +0200 Subject: [PATCH] Use a minimal size of 2 for the select tag of MultiSelection widgets Browsers based on Chromium renders the select as a "normal" select tag when size=1. Such that the mousedown event is triggered twice which clear the selection. Closes #14529 --- sao/src/view/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/view/form.js b/sao/src/view/form.js index 738562bc1a..1064dfa471 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -4910,7 +4910,8 @@ function eval_pyson(value){ var record = this.record; var field = this.field; this.update_selection(record, field, () => { - this.select.prop('size', this.select.children().length); + this.select.prop( + 'size', Math.max(2, this.select.children().length)); if (!field) { return; }