diff --git a/templates/bolt/editcontent/fields/_ajaxmultictselect.twig b/templates/bolt/editcontent/fields/_ajaxmultictselect.twig index 1138e30..148d6c1 100644 --- a/templates/bolt/editcontent/fields/_ajaxmultictselect.twig +++ b/templates/bolt/editcontent/fields/_ajaxmultictselect.twig @@ -85,7 +85,10 @@ sortable: field.sortable|default(false) 'name': key, 'field': field } %} - + + {# This ensures that an empty value is always submitted #} + +
{{ buic_select(buic_opt_select) }}
diff --git a/web/ajax-multict-select-field.js b/web/ajax-multict-select-field.js index 1ab319e..a4d4bf0 100644 --- a/web/ajax-multict-select-field.js +++ b/web/ajax-multict-select-field.js @@ -46,7 +46,7 @@ } }, placeholder : options.placeholder, - allowClear : options.allowClear, + allowClear : options.allowClear || true, minimumResultsForSearch : options.minimumResultsForSearch, width : options.width, ajax : {