Closed ghost closed 6 years ago
also facing the same problem
Has this been resolved?
I'm still facing the same issue.
On my end, I can reproduce it by opening the keyboard on an input field and then navigating away from the page.
I tried to tap into the ionViewWillLeave() lifecycle event to call Keyboard.close() but it still pops up continuously on each touch event.
It doesn't do this on Android and I have hideKeyboardAccessoryBar(false) set on iOS.
Are you facing this issue in an iframe?
That is correct.
I'm getting this issue with the Stripe.js integration which injects an iframe into the page.
I managed to solve this problem like this: I simulated a back button on the iframe(keyboard closes when tapping on iframe input controls), on which I've registered an event. This event triggers an emit event(check them if you haven't seen them on javascript) which is listened to by the Ionic application. When the event is triggered in the Ionic application I do a back programmatically. This was my situation, hope this helps!
I got mine working too but in a different way. I ended up using a hidden input that I would put focus into when the page was being removed and it solved my issue. More details here.
I call Keyboard.close() in order to close the keyboard programmatically on iOS but as soon as I tap somewhere else on the screen it reopens. Any opinions?