gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

Fixing multiselect display bug for selects not using multiselect #729

Open ambischof opened 4 years ago

ambischof commented 4 years ago

If you had multiselect library loaded, but were not using it for a sepecific select, then you disable/enable it, it would switch from normal select to multiselect.

I mimiced the logic used elsewhere to decide whether or not to render multiselect, which is whether or not the 'multiple' option was set.

see jsfiddle https://jsfiddle.net/anneb574/rhce3oxf/2/