(element: Element | null)
| 152 | } |
| 153 | |
| 154 | function removeAriaDescribedBy(element: Element | null) { |
| 155 | const newDescribedBy = getAriaDescribedBy(element).filter((s) => s !== id) |
| 156 | if (newDescribedBy.length) { |
| 157 | element?.setAttribute('aria-describedby', newDescribedBy.join(' ')) |
| 158 | } else { |
| 159 | element?.removeAttribute('aria-describedby') |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | if (show) { |
| 164 | removeAriaDescribedBy(previousActiveAnchor) |
no test coverage detected
searching dependent graphs…