Skip to content

Commit 02b3807

Browse files
theodespCopilot
andauthored
Update packages/toolbar/src/core/VanillaRenderer.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent be0c467 commit 02b3807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolbar/src/core/VanillaRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class VanillaRenderer {
289289

290290
// Click outside to close
291291
const handleClickOutside = (e) => {
292-
if (!container.contains(e.target)) {
292+
if (!(e.target instanceof Element) || !container.contains(e.target)) {
293293
closeMenu();
294294
}
295295
};

0 commit comments

Comments
 (0)