I'm loading drop-down options remotely, everything works fine except after some typing and deleting text, the drop-down scroller comes to the middle of scroll bar, and not the first option

how can i force the drop down to always be at the first option after remote call?
Solved it by adding scroll in success part of ajax request as below
success: function (res) {
callback(res.results);
$('.selectize-dropdown-content').animate({ scrollTop: (0) }, 'slow');
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With