Try waiting for timeout before sending focus to search input

Maybe fixes search field doesn't get focus when clicking on select
This commit is contained in:
nathan 2023-11-28 10:16:43 -07:00 committed by ralf
parent a55cdd4d2c
commit acd52cf749

View File

@ -742,9 +742,12 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
_handleAfterShow()
{
if(this.searchEnabled || this.allowFreeEntries)
{
window.setTimeout(() =>
{
this._searchInputNode.focus();
this._searchInputNode.select();
}, 100);
}
return;
// Need to give positioner a chance to position.