File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Sources/OSInAppBrowserLib/RouterAdapters Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ Unreleased]
8
+
9
+ ### Fixes
10
+
11
+ - Fixes an issue where dismissing an alert view triggered the onBrowserClosed event. [ RMET-4500] ( https://outsystemsrd.atlassian.net/browse/RMET-4500 ) .
12
+
7
13
## 2.2.0
8
14
9
15
### Features
Original file line number Diff line number Diff line change @@ -121,10 +121,14 @@ private class OSIABWebViewController: UIHostingController<OSIABWebViewWrapperVie
121
121
}
122
122
123
123
override func dismiss( animated flag: Bool , completion: ( ( ) -> Void ) ? = nil ) {
124
- super. dismiss ( animated: flag, completion: {
124
+ guard presentedViewController == nil else {
125
+ return super. dismiss ( animated: flag, completion: completion)
126
+ }
127
+
128
+ super. dismiss ( animated: flag) {
125
129
self . dismiss ? ( )
126
130
completion ? ( )
127
- } )
131
+ }
128
132
}
129
133
}
130
134
You can’t perform that action at this time.
0 commit comments