From a2beb10e46c9aae50e821e557c40e083e998b284 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Sat, 27 Jul 2024 10:54:14 +0100 Subject: [PATCH] drop support for Input elements --- invoker.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/invoker.js b/invoker.js index 8ff5a34..d9ddaaf 100644 --- a/invoker.js +++ b/invoker.js @@ -149,7 +149,7 @@ } }, get() { - if (this.localName !== "button" && this.localName !== "input") { + if (this.localName !== "button") { return null; } if ( @@ -161,14 +161,6 @@ ); return null; } - if ( - this.localName === "input" && - this.type !== "reset" && - this.type !== "image" && - this.type !== "button" - ) { - return null; - } if (this.disabled) { return null; } @@ -346,7 +338,6 @@ } applyInvokerMixin(globalThis.HTMLButtonElement || function () {}); - applyInvokerMixin(globalThis.HTMLInputElement || function () {}); observeShadowRoots(globalThis.HTMLElement || function () {}, (shadow) => { setupInvokeListeners(shadow);