Forum

select2 not focusin...
 
Notifications
Clear all

select2 not focusing after click

   RSS

0
Topic starter

how to fix

1 Answer
0
Topic starter

This is problem with jQuery 3.6.0+

workaround:

$(function () {

    $(document).on('select2:open', () => {
        document.querySelector('.select2-search__field').focus();
    });

    $('.select2').select2();
});
This post was modified 1 tydzień temu by mrmucha

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: