mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-16 16:57:11 +08:00
Merge pull request #6530 from aignatov-bio/ai-sci-9599-fix-dropdown-click-away
Fix dropdown click aways [SCI-9599]
This commit is contained in:
commit
df1b54d5d0
1 changed files with 1 additions and 1 deletions
|
@ -479,7 +479,7 @@ var dropdownSelector = (function() {
|
||||||
$(window).scroll(() => { updateDropdownDirection(selectElement, dropdownContainer); });
|
$(window).scroll(() => { updateDropdownDirection(selectElement, dropdownContainer); });
|
||||||
|
|
||||||
// When user will click away, we must close dropdown
|
// When user will click away, we must close dropdown
|
||||||
$(window).click(() => {
|
$(document).click(() => {
|
||||||
if (dropdownContainer.hasClass('open')) {
|
if (dropdownContainer.hasClass('open')) {
|
||||||
dropdownContainer.find('.search-field').val('');
|
dropdownContainer.find('.search-field').val('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue