Open twstd27 opened 6 years ago
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') });
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.