loading...

re: How To Declare And Pass Parameters To An Ionic + React Modal VIEW POST

FULL DISCUSSION
 

Great article David!

One thing to add is to make sure you have a handler for onDidDismiss handler on the modal to set the open state back to false in case the user doesn't use the close button to dismiss the modal (they could just hit escape). That change in the open variable is what is used to kick off showing of the modal, so if it doesn't change back to false it won't open again when the user clicks the open button.

 

So true, I should have thought about trying to close the modal using Esc or dismissing through a click on the backdrop. Well spotted Ely, thank you for the feedback!

 

I have updated the article to reflect your comment, thank you Ely 👍

code of conduct - report abuse