Capturing popover data when dismissing from background


#1

Does anyone know how to capture data from a popover component if the popover is dismissed using a click of the background rather than clicking a button to close the popover? Using the latter method I can just manually make a call to

this.viewController.dismiss(data);

when the user clicks a close button and in the parent component I can get to the data via the onDidDismiss method.

But what I haven’t figured out is how to intercept the dismiss (and pass my data in) when the user dismisses the popover via a click on the background?