Skilltech's post in Select2 and GSAP ScrollSmoother was marked as the answer
For anyone using select2 with ScrollSmoother, you can force the dropdown close on scroll like so:
/**
* Initialize Select2
*/
var targetForSelect2 = 'select'; // we'll reuse the selector
$( targetForSelect2 ).select2({
// your options
});
// on window scroll, close any open select2 dropdowns
$(window).scroll(function() {
var select2Dropdown = $( targetForSelect2 );
if (select2Dropdown.length) {
select2Dropdown.select2( 'close' );
}
});