mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:52 +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
@ -742,9 +742,12 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
|
|||||||
_handleAfterShow()
|
_handleAfterShow()
|
||||||
{
|
{
|
||||||
if(this.searchEnabled || this.allowFreeEntries)
|
if(this.searchEnabled || this.allowFreeEntries)
|
||||||
|
{
|
||||||
|
window.setTimeout(() =>
|
||||||
{
|
{
|
||||||
this._searchInputNode.focus();
|
this._searchInputNode.focus();
|
||||||
this._searchInputNode.select();
|
this._searchInputNode.select();
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
// Need to give positioner a chance to position.
|
// Need to give positioner a chance to position.
|
||||||
|
Loading…
Reference in New Issue
Block a user