mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37: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() {
|
private _handleOpened() {
|
||||||
this.updateComplete.then(() => {
|
this.updateComplete.then(() => {
|
||||||
this._done = true;
|
this._done = true;
|
||||||
|
this._filterInputField?.inputElement.inputElement.focus();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -384,12 +385,12 @@ export class QuickBar extends LitElement {
|
|||||||
this._focusListElement = ev.target as ListItem;
|
this._focusListElement = ev.target as ListItem;
|
||||||
if (ev.key === "ArrowUp") {
|
if (ev.key === "ArrowUp") {
|
||||||
if (isFirstListItem) {
|
if (isFirstListItem) {
|
||||||
this._filterInputField?.focus();
|
this._filterInputField?.inputElement.inputElement.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ev.key === "Backspace" || isSingleCharacter) {
|
if (ev.key === "Backspace" || isSingleCharacter) {
|
||||||
(ev.currentTarget as List).scrollTop = 0;
|
(ev.currentTarget as List).scrollTop = 0;
|
||||||
this._filterInputField?.focus();
|
this._filterInputField?.inputElement.inputElement.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user