diff --git a/src/state/quick-bar-mixin.ts b/src/state/quick-bar-mixin.ts index 1c4661c397..7f4473f4d4 100644 --- a/src/state/quick-bar-mixin.ts +++ b/src/state/quick-bar-mixin.ts @@ -144,11 +144,14 @@ export default >(superClass: T) => return false; } - if (!(el instanceof HTMLInputElement)) { + if ( + (el as Element).tagName !== "INPUT" && + !(el instanceof HTMLInputElement) + ) { return true; } - switch (el.type) { + switch ((el as HTMLInputElement).type) { case "button": case "checkbox": case "hidden":