luci-base: form.js: default to unlimited dropdown size
authorJo-Philipp Wich <jo@mein.io>
Tue, 28 May 2019 13:31:26 +0000 (15:31 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:25 +0000 (15:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index 835c1fbb61e2e2f801fc90937e99891fe1da3282..9351bae035b07179afb8296f5f760b70c9b74605 100644 (file)
@@ -1543,7 +1543,7 @@ var CBIMultiValue = CBIDynamicList.extend({
                        optional: this.optional || this.rmempty,
                        select_placeholder: this.placeholder,
                        display_items: this.display_size || this.size || 3,
-                       dropdown_items: this.dropdown_size || this.size || 5,
+                       dropdown_items: this.dropdown_size || this.size || -1,
                        validate: L.bind(this.validate, this, section_id)
                });