Select2 elements loses focus on tab. It should focus on next (select2) element.
See original GitHub issueGo to https://adminlte.io/themes/AdminLTE/pages/forms/advanced.html. Try focusing on a select2 element, then press tab. You will see that the focus is not on the next input element.
I am not sure if the problem is with select2 itself or usage of it in admin-lte.
It seems that select2 is not keyboard friendly. I found other select plugin selectize
, which is more keyboard friendly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Select2 open dropdown on focus - Stack Overflow
So the first time the element get the focus, the select2 is opened for one time (because of one), when the element is...
Read more >Common problems - The jQuery replacement for select boxes
This issue occurs because Bootstrap modals tend to steal focus from other elements outside of the modal. Since by default, Select2 attaches the...
Read more >Search being unfocused - Is this a bug? - Select2
Hello, we are currently in the process of migrating from Select2 3.5 to 4.X, and noticed, that the search input loses focus straight...
Read more >Multiple Select Element loses focus after first select - Select2
After selecting the first element in a multiple select, it becomes unfocused – not even the next field. returns back to the select...
Read more >Tabbing without breaking order when opening - Select2
The reason you're seeing this behavior is that you are forcing the Select2 open when focus is on the Select2. Select2 returns focus...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a Select2 issue there is a fix for this.
$('select').on("select2:close", function () { $(this).focus(); });
Hi, check this fix https://github.com/select2/select2/pull/4427/commits/294e7e664d95eafb7f41264c2b87412ad9aa48fc