Hello. I have a form to edit data in a modal. When somebody clicks the backdrop, I would like to check first that no change is pending, and suggest user:
a) to keep editing (or saving), which cancels the modal dismiss
b) to confirm, which closes the modal dismiss
If I set
backdropDismiss property to
false, I won’t achieve what I want (unless there is an event like ‘onBackdropClick’)
If I use
onWillDismiss, I don’t know how to cancel the dismiss event if I want to.