You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried setting countSelectedText to both a string template as well as a function.
I've also tried setting selectedTextFormat to both count and count > 0.
It works fine if I select more than 1 item, but if I only select 1, I just see that item's text (which in my case doesn't look good since I use a template for each item).
I can understand the default of selectedTextFormat: "count" only showing the countSelectedText value if more than 1 is selected, but at the very least, I would expect "count>0" to work where it shows my countSelectedText template if only one item is selected.
I have tried setting
countSelectedText
to both a string template as well as a function.I've also tried setting
selectedTextFormat
to bothcount
andcount > 0
.It works fine if I select more than 1 item, but if I only select 1, I just see that item's text (which in my case doesn't look good since I use a template for each item).
I can understand the default of
selectedTextFormat: "count"
only showing thecountSelectedText
value if more than 1 is selected, but at the very least, I would expect "count>0" to work where it shows mycountSelectedText
template if only one item is selected.I've narrowed down the issue to one line of code:
bootstrap-select/js/bootstrap-select.js
Line 1664 in 2c39162
Here's a quick reproduction of the issue (I kept it as simple as possible, even opting to use the default
countSelectText
(and not defining my own).http://jsfiddle.net/k2ph0vcm/
The text was updated successfully, but these errors were encountered: