Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Modal dismiss: how to abort dismiss if changes are pending

$
0
0

@manu_ionic wrote:

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.

Any idea?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>