mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fix shortcuts in supervisor search (#15269)
This commit is contained in:
parent
3af808ffa9
commit
8642478e8a
@ -144,11 +144,14 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(el instanceof HTMLInputElement)) {
|
if (
|
||||||
|
(el as Element).tagName !== "INPUT" &&
|
||||||
|
!(el instanceof HTMLInputElement)
|
||||||
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (el.type) {
|
switch ((el as HTMLInputElement).type) {
|
||||||
case "button":
|
case "button":
|
||||||
case "checkbox":
|
case "checkbox":
|
||||||
case "hidden":
|
case "hidden":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user