mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 22:51:37 +02:00
Try waiting for updateComplete before sending focus to search input
Maybe fixes search field doesn't get focus when clicking on select
This commit is contained in:
@ -742,9 +742,12 @@ export const Et2WithSearchMixin = dedupeMixin(<T extends Constructor<LitElement>
|
||||
_handleAfterShow()
|
||||
{
|
||||
if(this.searchEnabled || this.allowFreeEntries)
|
||||
{
|
||||
this.updateComplete.then(() =>
|
||||
{
|
||||
this._searchInputNode.focus();
|
||||
this._searchInputNode.select();
|
||||
});
|
||||
}
|
||||
return;
|
||||
// Need to give positioner a chance to position.
|
||||
|
Reference in New Issue
Block a user