Forum

select2 not focusin...
 
Notifications
Clear all

select2 not focusing after click

1 Posty
1 Users
0 Reactions
533 Widok
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();
});

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: