MCPcopy Create free account
hub / github.com/adobe/react-spectrum / handleSearchChange

Function handleSearchChange

packages/dev/s2-docs/src/MobileSearchMenu.tsx:275–280  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

273 };
274
275 let handleSearchChange = (value: string) => {
276 setSearchValue(value);
277 if (value === '' && !searchFocused) {
278 setSearchFocused(false);
279 }
280 };
281
282 // Delay closing until the page updates (or the skeleton shows).
283 let lastPage = useRef(currentPage);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected