Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal problem #80

Open
twstd27 opened this issue Sep 24, 2018 · 1 comment
Open

Modal problem #80

twstd27 opened this issue Sep 24, 2018 · 1 comment

Comments

@twstd27
Copy link

twstd27 commented Sep 24, 2018

When modal is larger than screen and you scroll down to see content all select2 stop working properly, you can't open the dropdown, it closes everytime you click on it.

@sherman89
Copy link

I struggled with a similar issue, and the solution is to set the dropdownParent property to the body of the modal (NOT the root modal div as the documentation suggests).

$('#mySelect2').select2({ dropdownParent: $('#myModalContent') });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants