MCPcopy Create free account
hub / github.com/reactjs/react-modal / resetState

Function resetState

src/helpers/ariaAppHider.js:8–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6/* eslint-disable no-console */
7/* istanbul ignore next */
8export function resetState() {
9 if (globalElement) {
10 if (globalElement.removeAttribute) {
11 globalElement.removeAttribute("aria-hidden");
12 } else if (globalElement.length != null) {
13 globalElement.forEach(element => element.removeAttribute("aria-hidden"));
14 } else {
15 document
16 .querySelectorAll(globalElement)
17 .forEach(element => element.removeAttribute("aria-hidden"));
18 }
19 }
20 globalElement = null;
21}
22
23/* istanbul ignore next */
24export function log() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected