From 68216c89caafcc4c664559572d6309b4dff1e53f Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 28 Nov 2023 10:16:43 -0700 Subject: [PATCH] Try waiting for timeout before sending focus to search input Maybe fixes search field doesn't get focus when clicking on select --- api/js/etemplate/Et2Select/SearchMixin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index e049b9d9c5..142a8afc17 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -743,11 +743,11 @@ export const Et2WithSearchMixin = dedupeMixin( { if(this.searchEnabled || this.allowFreeEntries) { - this.updateComplete.then(() => + window.setTimeout(() => { this._searchInputNode.focus(); this._searchInputNode.select(); - }); + }, 100); } return; // Need to give positioner a chance to position.