Fix shortcuts in supervisor search (#15269)

This commit is contained in:
Bram Kragten 2023-01-30 16:36:50 +01:00 committed by GitHub
parent 3af808ffa9
commit 8642478e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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":