MCPcopy Index your code
hub / github.com/JedWatson/react-select / handleInputChange

Function handleInputChange

packages/react-select/src/utils.ts:141–154  ·  view source on GitHub ↗
(
  inputValue: string,
  actionMeta: InputActionMeta,
  onInputChange?: (
    newValue: string,
    actionMeta: InputActionMeta
  ) => string | void
)

Source from the content-addressed store, hash-verified

139// ==============================
140
141export function handleInputChange(
142 inputValue: string,
143 actionMeta: InputActionMeta,
144 onInputChange?: (
145 newValue: string,
146 actionMeta: InputActionMeta
147 ) => string | void
148) {
149 if (onInputChange) {
150 const newValue = onInputChange(inputValue, actionMeta);
151 if (typeof newValue === 'string') return newValue;
152 }
153 return inputValue;
154}
155
156// ==============================
157// Scroll Helpers

Callers 1

useAsyncFunction · 0.90

Calls 1

onInputChangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…