MCPcopy Create free account
hub / github.com/esengine/esengine / handleClickOutside

Function handleClickOutside

packages/editor-app/src/components/MainToolbar.tsx:88–92  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

86 if (!showRunMenu) return;
87
88 const handleClickOutside = (e: MouseEvent) => {
89 if (runMenuRef.current && !runMenuRef.current.contains(e.target as Node)) {
90 setShowRunMenu(false);
91 }
92 };
93
94 const timer = setTimeout(() => {
95 document.addEventListener('click', handleClickOutside);

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected