(modal)
| 493 | } |
| 494 | |
| 495 | function refreshModalState(modal) { |
| 496 | if (!modal || !document.body.contains(modal)) return; |
| 497 | const visible = isModalVisible(modal); |
| 498 | if (visible && !modal.__frOpen) handleModalOpen(modal); |
| 499 | if (!visible && modal.__frOpen) handleModalClose(modal); |
| 500 | } |
| 501 | |
| 502 | function closeModalElement(modal) { |
| 503 | if (!modal) return false; |
nothing calls this directly
no test coverage detected