From 2430f65304df0dadb09b1e27253fa28869955b64 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 17 Apr 2024 09:04:37 -0600 Subject: [PATCH] Fix disappearing tags when user clicks on search after selecting a result --- api/js/etemplate/Et2Select/SearchMixin.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index 1008554265..2931ba4695 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -471,8 +471,9 @@ export const Et2WithSearchMixin = dedupeMixin( tabindex="-1" placeholder="${this.egw().lang("search")}" style="flex: 1 1 auto;" - @keydown=${this._handleSearchKeyDown} - @blur=${this._handleSearchBlur} + @mousedown=${this._handleSearchMouseDown} + @keydown=${this._handleSearchKeyDown} + @blur=${this._handleSearchBlur} @sl-clear=${this._handleSearchClear} @sl-change=${this._handleSearchChange} > @@ -929,6 +930,7 @@ export const Et2WithSearchMixin = dedupeMixin( */ async _handleSearchBlur(event : FocusEvent) { + event.stopPropagation(); clearTimeout(this._searchTimeout); }