MCPcopy Create free account
hub / github.com/react-component/input / onInputClick

Function onInputClick

src/BaseInput.tsx:48–52  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

46 const containerRef = useRef<HTMLDivElement>(null);
47
48 const onInputClick: React.MouseEventHandler = (e) => {
49 if (containerRef.current?.contains(e.target as Element)) {
50 triggerFocus?.();
51 }
52 };
53
54 const hasAffix = hasPrefixSuffix(props);
55

Callers

nothing calls this directly

Calls 1

triggerFocusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…