mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
Et2Select: Cancel search timer on blur and menu close
If we don't, results might come back after we leave/close and re-open
This commit is contained in:
parent
b19d75874a
commit
bd62279f55
@ -655,6 +655,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
clearTimeout(this._searchTimeout);
|
||||||
super.handleMenuHide();
|
super.handleMenuHide();
|
||||||
|
|
||||||
// Reset display
|
// Reset display
|
||||||
@ -787,6 +788,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
*/
|
*/
|
||||||
async _handleSearchBlur(event : FocusEvent)
|
async _handleSearchBlur(event : FocusEvent)
|
||||||
{
|
{
|
||||||
|
clearTimeout(this._searchTimeout);
|
||||||
if(event.relatedTarget && this !== (<Element>event.relatedTarget).parentElement)
|
if(event.relatedTarget && this !== (<Element>event.relatedTarget).parentElement)
|
||||||
{
|
{
|
||||||
await this.dropdown.hide();
|
await this.dropdown.hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user