MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / getModalManager

Function getModalManager

src/Offcanvas.tsx:251–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 );
250
251 function getModalManager() {
252 if (propsManager) return propsManager;
253 if (scroll) {
254 // Have to use a different modal manager since the shared
255 // one handles overflow.
256 if (!modalManager.current)
257 modalManager.current = new BootstrapModalManager({
258 handleContainerOverflow: false,
259 });
260 return modalManager.current;
261 }
262
263 return getSharedManager();
264 }
265
266 const handleEnter = (node, ...args) => {
267 if (node) node.style.visibility = 'visible';

Callers 1

Offcanvas.tsxFile · 0.70

Calls 1

getSharedManagerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…