From 10314e59bc83ca8b73ee0c5cee24f7a619334751 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 19 Dec 2024 13:30:00 -0700 Subject: [PATCH] Et2Search / SearchMixin: Clear button focuses search, ready for new value --- api/js/etemplate/Et2Select/SearchMixin.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index 57cd0da8f2..681799618d 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -928,6 +928,11 @@ export const Et2WithSearchMixin = dedupeMixin( { this._handleSearchAbort(e); } + // Focus the widget again, ready for a search + this.updateComplete.then(() => + { + this.dropdown.open = true; + }) } /**