mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Et2Select: Fix additional entry selected after closing option list
Sometimes after searching and selecting an entry from the results, when the list was closed an additional option was added
This commit is contained in:
parent
885c3fed0a
commit
da93788c1d
@ -16,6 +16,7 @@ import {dedupeMixin} from "@open-wc/dedupe-mixin";
|
||||
import {SlOption} from "@shoelace-style/shoelace";
|
||||
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
|
||||
import {until} from "lit/directives/until.js";
|
||||
import {waitForEvent} from "../Et2Widget/event";
|
||||
|
||||
// Otherwise import gets stripped
|
||||
let keep_import : Et2Tag;
|
||||
@ -770,7 +771,7 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
|
||||
}
|
||||
this.removeAttribute("open");
|
||||
|
||||
this.clearSearch();
|
||||
waitForEvent(this, "sl-after-hide").then(() => this.clearSearch());
|
||||
|
||||
// Reset display
|
||||
if(this._searchInputNode)
|
||||
|
Loading…
Reference in New Issue
Block a user