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

Function onRequestClose

specs/Modal.spec.js:251–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 isOpen: true,
250 className: "modal-b",
251 onRequestClose() {
252 const modalContent = mcontent(modalB);
253 document.activeElement.should.be.eql(mcontent(modalA));
254 escKeyDown(modalContent);
255 document.activeElement.should.be.eql(modalContent);
256 }
257 },
258 null
259 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected