mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
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:
parent
a55cdd4d2c
commit
acd52cf749
@ -743,8 +743,11 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
|
||||
{
|
||||
if(this.searchEnabled || this.allowFreeEntries)
|
||||
{
|
||||
this._searchInputNode.focus();
|
||||
this._searchInputNode.select();
|
||||
window.setTimeout(() =>
|
||||
{
|
||||
this._searchInputNode.focus();
|
||||
this._searchInputNode.select();
|
||||
}, 100);
|
||||
}
|
||||
return;
|
||||
// Need to give positioner a chance to position.
|
||||
@ -1589,4 +1592,4 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
|
||||
}
|
||||
|
||||
return Et2WidgetWithSearch as unknown as Constructor<SearchMixinInterface> & T;
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user