1
Bootstrap selectpicker works with bootstrap version 4?
Is there incompatibility between them? There is another similar "plugin"?
I’m testing it like this:
CSS imported:
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/css/bootstrap-select.min.css">
Imported scripts:
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/bootstrap-select.min.js"></script>
Code used:
<select class="selectpicker" data-live-search="true">
<option data-tokens="ketchup mustard">Hot Dog, Fries and a Soda</option>
<option data-tokens="mustard">Burger, Shake and a Smile</option>
<option data-tokens="frosting">Sugar, Spice and all things nice</option>
</select>
Everything as the documentation explains. The difference is the bootstrap that is newer.
You have already tested?
– Sam
yes, it didn’t work...
– Italo Rodrigo
I tested on BS4 and it didn’t work, it doesn’t open Select
– hugocsl
Load this . js before bootstrap . js and run a test:
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
– Sam
@hugocsl this same, I’ll wait to see if someone gives some hint :/
– Italo Rodrigo
@dvd same thing, does not open select
– Italo Rodrigo
Check it out: https://jsfiddle.net/ohhhryL3/
– Sam
https://github.com/ublaboo/datagrid/issues/416 look here
– hugocsl
@dvd does not work as it should
– Italo Rodrigo
@hugocsl saw that they released the beta version of bootstrap-select with bootstrap 4 support, but still could not make it work :/
– Italo Rodrigo
I think I’ll give up and use ajax requests. I’ll still leave the topic open if someone comes up with a solution
– Italo Rodrigo