diff --git a/ios/Temp/ModalEventManager/ModalEventsManager.swift b/ios/Temp/ModalEventManager/ModalEventsManager.swift index e9ef256..0fe85fb 100644 --- a/ios/Temp/ModalEventManager/ModalEventsManager.swift +++ b/ios/Temp/ModalEventManager/ModalEventsManager.swift @@ -133,6 +133,14 @@ public final class ModalEventsManager { return }; + let didDismiss = + modalVC.view.window == nil + || !modalVC.isPresentedAsModal; + + guard didDismiss else { + return; + }; + let eventManager = ModalEventsManagerRegistry.shared.getManager(forWindow: targetWindow);