We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce5cf45 + a845fb0 commit ed879f3Copy full SHA for ed879f3
1 file changed
invoker.js
@@ -317,7 +317,7 @@ export function apply() {
317
const source = event.target.closest("button[commandfor], button[command]");
318
if (!source) return;
319
320
- if (this.form && this.getAttribute("type") !== "button") {
+ if (source.form && source.getAttribute("type") !== "button") {
321
event.preventDefault();
322
throw new Error(
323
"Element with `commandFor` is a form participant. " +
0 commit comments