apalfrey / select2-bootstrap-5-theme

A Select2 v4 theme for Bootstrap 5
https://apalfrey.github.io/select2-bootstrap-5-theme/
MIT License
218 stars 48 forks source link

Autofocus is not working in jquery@3.6.0 #77

Open gojmpz opened 1 year ago

gojmpz commented 1 year ago

In jquery 3.6.0 the autofocus is not working, in 3.5.0 everything is ok 2023-03-08_20-15

<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2-bootstrap-5-theme@1.3.0/dist/select2-bootstrap-5-theme.min.css" />
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
JorgRios commented 1 year ago

I have the same problem, any feedback or something to correct this bug? since changing to 3.5.0 works correctly but when jumping to 3.6.0 it stops working :/

mariusgronli commented 1 year ago

I also have the same problem. Has anyone found a solution?