This commit is contained in:
liumengyi
2022-06-30 13:03:04 +08:00
parent 03b07a3b3a
commit afa237c3ac
+1 -1
View File
@@ -292,7 +292,7 @@ $(function()
var $this = $(this);
var $chosen = $this.next('.chosen-container').removeClass('chosen-up');
var $drop = $chosen.find('.chosen-drop');
$chosen.toggleClass('chosen-up', $drop.height() + $drop.offset().top - $(document).scrollTop() > $(window).height());
if($this.data('drop_direction') === 'auto') $chosen.toggleClass('chosen-up', $drop.height() + $drop.offset().top - $(document).scrollTop() > $(window).height());
});
$searchForm.find('.picker-select').each(function()