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