mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 21:17:47 +00:00
Fixes Safari Focus because
This commit is contained in:
parent
cf527e4bc2
commit
e49031036d
@ -209,6 +209,7 @@ export class QuickBar extends LitElement {
|
||||
private _handleOpened() {
|
||||
this.updateComplete.then(() => {
|
||||
this._done = true;
|
||||
this._filterInputField?.inputElement.inputElement.focus();
|
||||
});
|
||||
}
|
||||
|
||||
@ -384,12 +385,12 @@ export class QuickBar extends LitElement {
|
||||
this._focusListElement = ev.target as ListItem;
|
||||
if (ev.key === "ArrowUp") {
|
||||
if (isFirstListItem) {
|
||||
this._filterInputField?.focus();
|
||||
this._filterInputField?.inputElement.inputElement.focus();
|
||||
}
|
||||
}
|
||||
if (ev.key === "Backspace" || isSingleCharacter) {
|
||||
(ev.currentTarget as List).scrollTop = 0;
|
||||
this._filterInputField?.focus();
|
||||
this._filterInputField?.inputElement.inputElement.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user