-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
Hi,
i always get the following error for my multiselects.
Uncaught TypeError: string is not a function
Multiselect.createOptionValue
On line 576/577 it says:
// Support the label attribute on options.
var label = this.options.label(element);but this.options.label is a string (the label of the multiselect form element).
Shouldn't it be
var label = element.label;Here's one of my multi select elements. Is there something wrong with them?
<select id="feature_CATEGORY_4_MULTISELECT_4_0"
name="feature[CATEGORY_4][MULTISELECT_4_0][]"
data-visibility="ALL"
data-feature-id="HERD"
class="multi-select form-control valid"
data-select-all="true"
data-label="Herd"
multiple="multiple"
aria-invalid="false">
<option value="HERD">Herd</option>
<option value="2HERD">2-Platten-Herd</option>
<option value="GASHERD">Gasherd</option>
[...]
</select>Reactions are currently unavailable