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