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

Function onInternalCompositionEnd

src/Input.tsx:152–160  ·  view source on GitHub ↗
(
    e: React.CompositionEvent<HTMLInputElement>,
  )

Source from the content-addressed store, hash-verified

150 };
151
152 const onInternalCompositionEnd = (
153 e: React.CompositionEvent<HTMLInputElement>,
154 ) => {
155 compositionRef.current = false;
156 triggerChange(e, e.currentTarget.value, {
157 source: 'compositionEnd',
158 });
159 onCompositionEnd?.(e);
160 };
161
162 const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
163 if (onPressEnter && e.key === 'Enter' && !keyLockRef.current) {

Callers

nothing calls this directly

Calls 1

triggerChangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…