You may have already adjusted it in your own code, but it will work better if you have several drop-down lists on your web page:
$('.f-dropdown').click(function() { if ($(this).hasClass('open')) { $('span[data-dropdown="'+$(this).attr('id')+'"]').trigger('click'); } });
user1209398
source share