Skip to content

Commit f09762d

Browse files
committed
fix error when commandForElement returns null
1 parent a731bbf commit f09762d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

invoker.js

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@
296296
}
297297

298298
const invokee = source.commandForElement;
299+
if (!invokee) return;
299300
const invokeEvent = new CommandEvent("command", {
300301
command: source.command,
301302
source,

0 commit comments

Comments
 (0)