MCPcopy Create free account
hub / github.com/anomalyco/models.dev / closeSearchModal

Function closeSearchModal

packages/web/src/index.ts:430–435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428}
429
430function closeSearchModal() {
431 if (!searchModal) return;
432 if (searchModal.open) searchModal.close();
433 searchInput?.removeAttribute("aria-activedescendant");
434 lastFocusedElement?.focus();
435}
436
437function closestSearchResult(target: EventTarget | null) {
438 if (!(target instanceof Element)) return null;

Callers 3

openHelpDialogFunction · 0.85
openMobileMenuFunction · 0.85
index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected