MCPcopy Create free account
hub / github.com/Roy3838/Observer / handleClick

Function handleClick

app/src/components/LocalOnboardingTutorial.tsx:86–96  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

84 if (!isActive || current?.action !== 'click' || !current.targetSelector) return;
85
86 const handleClick = (e: Event) => {
87 const target = e.target as HTMLElement;
88 const highlighted = firstVisible(current.targetSelector);
89 if (highlighted && (highlighted === target || highlighted.contains(target))) {
90 if (step < STEPS.length - 1) {
91 setStep(s => s + 1);
92 } else {
93 onDismiss();
94 }
95 }
96 };
97
98 document.addEventListener('click', handleClick, true);
99 return () => document.removeEventListener('click', handleClick, true);

Callers

nothing calls this directly

Calls 1

firstVisibleFunction · 0.85

Tested by

no test coverage detected