Skip to content

Commit

Permalink
chore: simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Oct 8, 2024
1 parent 17f050d commit 26e7382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invoker.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
if (event.defaultPrevented) return;
if (event.type !== "click") return;
const oldInvoker = event.target.closest(
"button[invoketarget], button[invokeaction], input[invoketarget], input[invokeaction]",
":is(button, input):is([invoketarget], [invokeaction])",
);
if (oldInvoker) {
console.warn(
Expand All @@ -250,7 +250,7 @@
}

const source = event.target.closest(
"button[commandfor], button[command], input[commandfor], input[command]",
":is(button, input):is([commandfor], [command])",
);
if (!source) return;

Expand Down

0 comments on commit 26e7382

Please sign in to comment.