bug: Android transitions break tap.js interceptions
Type: bug
Platform: ios 8 webview
Codepen: http://codepen.io/marekkalnik/pen/dooRJK Platform: iPhone 6 (device and emulator)
Symptoms: When the button "log in" is clicked, and the users switches page to the form the keyboard shows by itself.
The faulty line in my code seems to be the one that activates android transitions:
$ionicConfigProvider.views.transition('android');
When the debugger is activated in https://github.com/driftyco/ionic/blob/master/js/utils/tap.js#L336 the logged element is INPUT instead of SPAN, so my guess is that the "ghostclick" is fired after the transition and somehow triggers the focus of iOS keyboard listener despite being prevented.
Try adding a click block when you log in, this is what we use for modals: https://github.com/driftyco/ionic/blob/master/js/angular/service/modal.js#L134.
Honestly it would be great if there was a way to stop these at the event level, but tap is a very fickle thing to mess with. @perrygovier would there be any issues with adding click block to all nav transitions?
@tlancina, lets play with it after the 1.0
Hey is this still an issue? I'm unable to reproduce on the latest.
I can reproduce this issue on iOS 9 (and I had this bug on previous versions).
When I click on a link (page A), if there is an input field on the next page (page B) at the exact spot of my link (page A), the field is focused and the keyboard opens. It's as if the click is still fired even after the transition to the next page happened.
I can solve this issue by deleting this line in my app config : $ionicConfigProvider.views.transition('none');
Is there a way to fix this ?
Thanks
Greetings @marekkalnik!
My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.
Thank you for allowing me to assist you.
Greetings @marekkalnik!
My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.
Thank you for allowing me to assist you.
Use of data-tap-disabled="true" on element solve my problem.
http://ionicframework.com/docs/api/page/tap/
Hello! Are you still experiencing this issue?
Since it has been a little while since there was any activity on this issue i will be closing it, but feel free to respond back if your still having the issue! Thanks again