Skip to content

Commit

Permalink
🐞 Fix: ModalSheetView Focus Event (Again)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 2, 2024
1 parent 1af1e64 commit 661ee7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/Temp/ModalEventManager/ModalEventsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 661ee7a

Please sign in to comment.