mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-10-15 18:35:49 +00:00
fix: stop the search box wrapping onto a second line once a dropdown value is selected
This commit is contained in:
@@ -50,7 +50,8 @@ function initPicker(select) {
|
|||||||
var noClear = 'noclear' in select.dataset;
|
var noClear = 'noclear' in select.dataset;
|
||||||
var multiple = select.multiple;
|
var multiple = select.multiple;
|
||||||
var url = select.dataset.sourceurl;
|
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) {
|
if (multiple) {
|
||||||
plugins.push('remove_button');
|
plugins.push('remove_button');
|
||||||
} else if (!noClear) {
|
} else if (!noClear) {
|
||||||
|
|||||||
Reference in New Issue
Block a user