ttskch / select2-bootstrap4-theme

Select2 v4 theme for Bootstrap4
MIT License
435 stars 206 forks source link

BS Theme not working on js-example-tags #59

Closed Ajonymous closed 4 years ago

Ajonymous commented 4 years ago

The theme doesn't seem to be working on the tags element. This is the code I am using below. But the image shows the differance between the Select2 field and the BS4 field

<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/select2-bootstrap4.css" type="text/css" />
<select class="form-control js-example-tags" name="caller" autofocus>
<option></option>
<option>Other</option>
<option>Pit Lane</option>
</select>
$('select').select2({
theme: 'bootstrap4',
});

$(".js-example-tags").select2({
tags: true
});

image

Ajonymous commented 4 years ago

Whoops, forgot script.js for BS4