I am using sumoselect on inputs in my web.
Problem is - if you open second sumoselect and after that you want open first -so click on first and he is not opening...
My code:
$('.country').SumoSelect({placeholder: 'first'});
$('.anotherSumo').SumoSelect({placeholder: 'second'});
$('.anotherSumo').on('sumo:closing', function(e) {
$('.country').empty();
$('.country').append('<option value="newValue">newValue</option>');
$('.country')[0].sumo.reload({placeholder: 'first'});
});
Here is working fiddle. Just open second select and after that try open first - 2 clicks. In reversed order - first click to open first sumo and after that second click on second sumo is everything ok...
I was trying add $('country').trigger("click"); after reload but nothing
https://jsfiddle.net/eqa9og2v/5/
I need to know how to open first sumo on second click any way but with funcional trigger on sumoselect close - because first user make his choices and if is user done with selecting options he close sumoselect (with open another or only close)