Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.2.0
- Cross-platform modules: 5.3.0-next-2019-03-21-142557-02
- Android Runtime:
- iOS Runtime: 5.3.0-2019-03-21-073518-01
- Plugin(s):
Describe the bug
When setting the presentationStyle of the ShowModalOptions to Popover:
ios: {
presentationStyle: UIModalPresentationStyle.Popover
}
the closeCallback of the ShowModalOptions is never called if you tap outside of the modal view to close it.
To Reproduce
- add the tns-platform-declarations to devDependencies: npm i tns-platform-declarations --save-dev
- Add references.d.ts to the root of the 'modal-navigation' e2e app with the following content:
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
- Change this lines of the 'modal-navigation' e2e app to:
let options: ShowModalOptions = {
context: "context",
closeCallback: () => console.log("home-page modal page closed"),
fullscreen: true,
ios: {
presentationStyle: UIModalPresentationStyle.Popover
},
};
view.showModal(frame, options);
Expected behavior
The closeCallback of the ShowModalOptions is called when you tap outside of the shown modal view in order to close it.
Reactions are currently unavailable
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
Describe the bug
When setting the presentationStyle of the ShowModalOptions to Popover:
ios: { presentationStyle: UIModalPresentationStyle.Popover }the closeCallback of the ShowModalOptions is never called if you tap outside of the modal view to close it.
To Reproduce
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
let options: ShowModalOptions = { context: "context", closeCallback: () => console.log("home-page modal page closed"), fullscreen: true, ios: { presentationStyle: UIModalPresentationStyle.Popover }, }; view.showModal(frame, options);Expected behavior
The closeCallback of the ShowModalOptions is called when you tap outside of the shown modal view in order to close it.