fix: stop the search box wrapping onto a second line once a dropdown value is selected

This commit is contained in:
Joe Banks
2026-10-11 21:08:10 +01:00
parent b7c4e580c4
commit 8816fe00b0

View File

@@ -50,7 +50,8 @@ function initPicker(select) {
var noClear = 'noclear' in select.dataset;
var multiple = select.multiple;
var url = select.dataset.sourceurl;
var plugins = [];
// input_autogrow keeps the search box on the same line as the selected value (otherwise it wraps and doubles the height)
var plugins = ['input_autogrow'];
if (multiple) {
plugins.push('remove_button');
} else if (!noClear) {