()
| 80 | const openPanels: HTMLElement[] = []; |
| 81 | let undoInert: () => void = () => undefined; |
| 82 | const syncInert = () => { |
| 83 | undoInert(); |
| 84 | undoInert = openPanels.length |
| 85 | ? inertOthers([ |
| 86 | ...openPanels, |
| 87 | ...Array.from( |
| 88 | document.querySelectorAll<HTMLElement>('[data-inert-exempt]'), |
| 89 | ), |
| 90 | ]) |
| 91 | : () => undefined; |
| 92 | }; |
| 93 | |
| 94 | const FOCUSABLE_SELECTOR = |
| 95 | 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'; |
no test coverage detected