Commit ff8207f4 authored by conradfr's avatar conradfr

Fix multiple divider on rebuild()

Divider was not removed on rebuild so each rebuild would add a new divider.
parent 84b63dc1
......@@ -796,6 +796,7 @@
// Remove select all option in select.
$('option[value="' + this.options.selectAllValue + '"]', this.$select).remove();
$('option[data-role="divider"]', this.$select).remove();
// Important to distinguish between radios and checkboxes.
this.options.multiple = this.$select.attr('multiple') === "multiple";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment