MCPcopy
hub / github.com/reactjs/react-modal / isDocumentWithReactModalOpenClass

Function isDocumentWithReactModalOpenClass

specs/helper.js:106–108  ·  view source on GitHub ↗
(
  bodyClass = bodyOpenClassName
)

Source from the content-addressed store, hash-verified

104 * @return {Boolean}
105 */
106export const isDocumentWithReactModalOpenClass = (
107 bodyClass = bodyOpenClassName
108) => document.body.className.includes(bodyClass);
109
110/**
111 * Return the class list object from <html />.

Callers 1

Modal.spec.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…