Skip to content

Commit

Permalink
drop support for Input elements
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jul 27, 2024
1 parent 0d45dca commit a2beb10
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions invoker.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}
},
get() {
if (this.localName !== "button" && this.localName !== "input") {
if (this.localName !== "button") {
return null;
}
if (
Expand All @@ -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;
}
Expand Down Expand Up @@ -346,7 +338,6 @@
}

applyInvokerMixin(globalThis.HTMLButtonElement || function () {});
applyInvokerMixin(globalThis.HTMLInputElement || function () {});

observeShadowRoots(globalThis.HTMLElement || function () {}, (shadow) => {
setupInvokeListeners(shadow);
Expand Down

0 comments on commit a2beb10

Please sign in to comment.