-
Notifications
You must be signed in to change notification settings - Fork 26
noneSelectedText not working in v.1.13.0 #48
Description
Bug:
The noneSelectedText isnt showing up at all.
It has worked in v.1.12.4.
How to reproduce the bug:
HTML:
<select class="btn-group form-control selectpicker m-0" data-show-subtext="true" data-selected-text-format="count" data-live-search="true" multiple="multiple"> <option value="" data-subtext="123" data-tokens="123"> 123 </option> <option value="" data-subtext="123" data-tokens="123"> 123 </option> <option value="" data-subtext="123" data-tokens="123"> 123 </option> <option value="" data-subtext="123" data-tokens="123"> 123 </option> </select>
JS:
$('.selectpicker').selectpicker({ size: 8.4, noneSelectedText: '<span class="placeholder">Choose multiple</span>', });
1.12.4 output is like this:
<button type="button" ... title="Choose multiple" ...><span class="filter-option pull-left"><span class="placeholder">Choose multiple</span></span> <span class="bs-caret"><span class="caret"></span></span></button>
1.13.0 output is like this:
<button type="button" ... title ...><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div><span class="bs-caret"><span class="caret"></span></span></button>
So "Choose multiple" doesnt get set, nor in the title or the element itself inside the button.
Does somebody know how to fix this?