coreui / coreui-free-bootstrap-admin-template

Free Bootstrap Admin & Dashboard Template
https://coreui.io/product/free-bootstrap-admin-template/
MIT License
11.94k stars 3.14k forks source link

Select2 focus on the input box not working #574

Closed nasirkhan closed 3 years ago

nasirkhan commented 3 years ago

I installed the free coreui "@coreui/coreui": "^3.2.2", via npm and build the sass for my laravel project.

Then i added Select2 via CDN and prepared a select input.

The dropdown works and the ajax too, but I found that the Select2 is not working as expected. When I click on the select input the dropdown menu appears, at that time the cursor focuses on the search input field. But here the focus does not down for the dropdowns. Is it a known issue for coreui?

without the coreui theme, select2 works as like their demo, but when i try to integrate with the theme it does not work perfectly. I tested with the firefox and chrome both from the windows and linux but the issue remains in all the places.

Now my select2 dropdown menu looks like the image 1, but it should be like the image 2 where the search input is in focus.

1 2

nasirkhan commented 3 years ago

closing the issue as I found that it is a bug for jquery 3.6 https://github.com/select2/select2/issues/5993