From 26e738200b31f5c844fb542ea4f354cdf747b4d3 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 8 Oct 2024 19:38:25 +0200 Subject: [PATCH] chore: simplification --- invoker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invoker.js b/invoker.js index 873f20f..4154d22 100644 --- a/invoker.js +++ b/invoker.js @@ -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( @@ -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;