projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a74769
)
Skip close requests originating from the search drop-down itself
author
Alexander Ebert
<ebert@woltlab.com>
Fri, 4 Feb 2022 13:10:58 +0000
(14:10 +0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Fri, 4 Feb 2022 13:10:58 +0000
(14:10 +0100)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index cf3a3908b5dbc3e308ab6ed6e65e3194d10911eb..1502ba029ef672001aa87c477cf96ae8b6e37c86 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-4471,7
+4471,13
@@
WCF.Search.Base = Class.extend({
return;
}
- WCF.CloseOverlayHandler.addCallback('WCF.Search.Base', $.proxy(function() { this._clearList(); }, this));
+ WCF.CloseOverlayHandler.addCallback('WCF.Search.Base', (origin, identifier) => {
+ if (origin === "dropdown" && identifier === this._searchInput[0].parentElement.id) {
+ return;
+ }
+
+ this._clearList();
+ });
var $containerID = this._searchInput.parents('.dropdown').wcfIdentify();
if (!WCF.Dropdown.getDropdownMenu($containerID).hasClass('dropdownOpen')) {