ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Android transitions break tap.js interceptions

Open marekkalnik opened this issue 11 years ago • 9 comments

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.

marekkalnik avatar Apr 30 '15 19:04 marekkalnik

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 avatar May 01 '15 18:05 tlancina

@tlancina, lets play with it after the 1.0

perrygovier avatar May 08 '15 19:05 perrygovier

Hey is this still an issue? I'm unable to reproduce on the latest.

tlancina avatar Dec 07 '15 20:12 tlancina

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

kinkaz avatar Jan 15 '16 15:01 kinkaz

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.

Ionitron avatar Jan 18 '16 18:01 Ionitron

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.

Ionitron avatar Jan 18 '16 18:01 Ionitron

Use of data-tap-disabled="true" on element solve my problem.

http://ionicframework.com/docs/api/page/tap/

ananda-naphade avatar Feb 22 '16 05:02 ananda-naphade

Hello! Are you still experiencing this issue?

jgw96 avatar Apr 01 '16 17:04 jgw96

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

jgw96 avatar Apr 06 '16 14:04 jgw96