Skip to content

Commit

Permalink
🐞 Fix: ModalSheetView Focus Event
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Oct 2, 2024
1 parent 1a91d89 commit e54cfd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ios/Temp/ModalEventManager/ModalEventsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ public final class ModalEventsManager {
modalEntries.otherModals?.forEach {
$0.setModalFocusState(.blurred);
};

eventManager.modalRegistry.removeEntry(forViewController: modalVC);
};
};

2 changes: 1 addition & 1 deletion ios/Temp/ModalEventManager/ModalRegistry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class ModalRegistry {

public func getEntriesSorted() -> [ModalRegistryEntry] {
self.registry.values.sorted {
$0.modalFocusIndex > $1.modalFocusIndex;
$0.modalFocusIndex < $1.modalFocusIndex;
};
};

Expand Down

0 comments on commit e54cfd0

Please sign in to comment.