mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Fix dropdown click aways [SCI-9599]
This commit is contained in:
parent
ff667a3a2b
commit
7515c979dd
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ var dropdownSelector = (function() {
|
|||
$(window).scroll(() => { updateDropdownDirection(selectElement, dropdownContainer); });
|
||||
|
||||
// When user will click away, we must close dropdown
|
||||
$(window).click(() => {
|
||||
$(document).click(() => {
|
||||
if (dropdownContainer.hasClass('open')) {
|
||||
dropdownContainer.find('.search-field').val('');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue