MCPcopy Create free account
hub / github.com/error311/FileRise / handleModalOpen

Function handleModalOpen

public/js/main.js:478–487  ·  view source on GitHub ↗
(modal)

Source from the content-addressed store, hash-verified

476}
477
478function handleModalOpen(modal) {
479 if (!modal) return;
480 modal.__frOpen = true;
481 recordModalOpener(modal);
482 applyModalA11yAttrs(modal);
483 trapFocusInModal(modal);
484 setTimeout(() => {
485 if (!modal.contains(document.activeElement)) focusFirstInModal(modal);
486 }, 0);
487}
488
489function handleModalClose(modal) {
490 if (!modal) return;

Callers 1

refreshModalStateFunction · 0.85

Calls 4

recordModalOpenerFunction · 0.85
applyModalA11yAttrsFunction · 0.85
trapFocusInModalFunction · 0.85
focusFirstInModalFunction · 0.85

Tested by

no test coverage detected