@SanduCuragau wrote:
When I first had the problem I searched around and found a couple of posts about this but for previous versions of IONIC and they didn’t work for me so I decided to post what I did to fix it for IONIC 4, I know it’s basic stuff but posting it might save someone’s time in the future also why I tried including keywords in the title
The problem is pretty simple, I’ma walk you through what’s happening in my App
- I have a side menu where I’m displaying the name of the logged in user ( the variable is stored in a service )
- When he clicks on his name a modal is shown, I developed the modal based on this post https://www.freakyjolly.com/ionic-4-how-to-use-ionic-modal-popovers-and-pass-data-and-receive-response/ where I can send and recieve data back, the only difference is how I’ve added some css to make it smaller and look like a popup instead of a full page page
- I send the user’s name to the modal and it is show on the input field, there’s 2 buttons, when he clicks Cancel the data sent back is the original data received, if he clicks Ok then he data sent back is the current text in the input field
- Everything so far works
- When I click outside the modal, the modal closes and the name on the side menu LITERALLY disappears
Posts: 2
Participants: 1