mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Fix dropdown issue for filters [SCI_8781] (#5731)
This commit is contained in:
parent
5f1c6bf2f0
commit
322346c8e4
1 changed files with 3 additions and 1 deletions
|
@ -441,7 +441,9 @@ var dropdownSelector = (function() {
|
||||||
if (dropdownContainer.hasClass('disabled') || (config.inputTagMode && noOptionsForSelect(selector))) return;
|
if (dropdownContainer.hasClass('disabled') || (config.inputTagMode && noOptionsForSelect(selector))) return;
|
||||||
|
|
||||||
// Each time we open option contianer we must scroll it
|
// Each time we open option contianer we must scroll it
|
||||||
optionContainer.scrollTo(0);
|
dropdownContainer.animate({
|
||||||
|
scrollTop: optionContainer.offset().top
|
||||||
|
});
|
||||||
|
|
||||||
// Now open/close option container
|
// Now open/close option container
|
||||||
dropdownContainer.toggleClass('open');
|
dropdownContainer.toggleClass('open');
|
||||||
|
|
Loading…
Add table
Reference in a new issue