Skip to content

Commit 2dd0432

Browse files
committed
Try sending event to the fallback handler if no active configuration
1 parent 90666a4 commit 2dd0432

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Testing/Events/Event.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ extension Event {
326326
if configuration.eventHandlingOptions.shouldHandleEvent(self) {
327327
configuration.handleEvent(self, in: context)
328328
}
329+
} else if postToFallbackHandler(in: context) {
330+
// The fallback event handler handled this event.
329331
} else {
330332
// The current task does NOT have an associated configuration. This event
331333
// will be lost! Post it to every registered event handler to avoid that.

0 commit comments

Comments
 (0)