Skip to content
Discussion options

You must be logged in to vote
 $(document).ready(function() {
            $('.select2').select2({
                language: '{{ app()->getLocale() }}',
                languagePath: '/packages/select2/dist/js/i18n/'
            });
        });

This is the culprit for the reported issue with other select2 on page.
You can't target the select2 using the .select2 class that's used by all other select2.
You can add another class .company-selector and use it to create the select2.

Cheers

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pxpm
Comment options

pxpm Jun 6, 2023
Maintainer

Answer selected by promatik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants