Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touch / click problem right after modals/popovers hide/close #5609

Closed
emps opened this issue Feb 25, 2016 · 19 comments
Closed

touch / click problem right after modals/popovers hide/close #5609

emps opened this issue Feb 25, 2016 · 19 comments

Comments

@emps
Copy link

emps commented Feb 25, 2016

Short description of the problem:

after closing or hiding popover or modal there is some ms that touch events not working
and this issue force ppl double click the screen else need wait some ms i dont know how much but close to 1sec

Ionic Version: 1.2.4 , ... , 1.3.1

Browser & Operating System: Android / Chrome
(ios not tested)

@agrt56
Copy link

agrt56 commented Feb 29, 2016

I have experienced a similar problem on ios 9 (Safari) and ionic v2. After each page transition (even menu opening/closing) it takes 1-2 seconds till a click-event on a button can be triggered.

On android 5.x everything seems to be fine.

@emps
Copy link
Author

emps commented Feb 29, 2016

here the problem accure only with modals/popovers

@jgw96
Copy link
Contributor

jgw96 commented Mar 11, 2016

Thanks for opening this issue! Would you mind giving us a code sample or codepen so that we could easily repro this issue? Also if you dont mind could you run ionic info and past the output here? Thanks again!

@agrt56
Copy link

agrt56 commented Mar 15, 2016

I've opened a new issue for my problem (#5838), as this here is adressed to v1.

@jgw96
Copy link
Contributor

jgw96 commented Mar 23, 2016

Hello! Thanks for opening an issue with us! 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 jgw96 closed this as completed Mar 23, 2016
@emps
Copy link
Author

emps commented Mar 31, 2016

an easy way to fix issue to close it

@jgw96
Copy link
Contributor

jgw96 commented Mar 31, 2016

Hello @emps Im happy to reopen this issue (: It was closed due to there being no activity on the issue for a specific amount of time from the original poster. @agrt56 commented but just to let us know he opened another issue as this one was related to v1. Would you be able to provide a codepen or plunkr so that we can use it to repro this issue? Thanks!

@jgw96 jgw96 reopened this Mar 31, 2016
@emps
Copy link
Author

emps commented Apr 3, 2016

yes i will make tomorrow morning codepen thanks

@jgw96
Copy link
Contributor

jgw96 commented Apr 5, 2016

Hello (: Have you gotten a chance to make that codepen yet?

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Apr 5, 2016
@emps
Copy link
Author

emps commented Apr 5, 2016

hii well i wanted to build an example right now but i see there is already one built
http://codepen.io/ionic/pen/GpCst
so the problem is there when u click on the more icon u get popover open and then press at backdrop to close it and imidiatly click on other tab u will see u will see click not working first 1sec as popover get close/hide same with modals

@emps
Copy link
Author

emps commented Apr 5, 2016

and its not tabs problem its any button or any element u will add there u cant click first 1sec after popover/modal get closed. its a big problem imo ppl cant wait they like touch screen

@jgw96 jgw96 removed the needs: reply the issue needs a response from the user label Apr 6, 2016
@christofferjjohansen
Copy link

christofferjjohansen commented Apr 18, 2016

Want to add this only happens for me when I click back in the top left corner. If I swipe back, it's not a problem. Anyone else notice this behaviour as well?

@emps
Copy link
Author

emps commented Jul 2, 2016

this problem can be fixed if the backdrop will removed from the dom with no delay cause the first click is fired on the backdrop div

@neolectron
Copy link

neolectron commented Aug 3, 2016

I have the same problem too, its still here in ionic 1.3.1
(a codepen to test with the last versions : http://codepen.io/anon/pen/KrxRXx )
Does anyone has a quickfix for this ?

It look like this commit was almost resolving the bug.

in my opinion the popup closes, then check the highest modal in the modalStack variable,
since the popup is closed, the highest modal is ... ...the parentModal, then the .remove() is applied on it. (not sure about that)

@gromon42
Copy link

gromon42 commented Aug 3, 2016

Ok i ve just run your code pen and i m having the same problem, i would really like the ionic team to fix it because it could really be annoying when using an app that the current modal closes itself for no reason after an alert/popup closes.

@jgw96
Copy link
Contributor

jgw96 commented Jan 17, 2017

This issue was moved to ionic-team/ionic-v1#198

@jgw96 jgw96 closed this as completed Jan 17, 2017
@bhagwans
Copy link

I had similar problem in my ionic 2 application. I solved it by using "this.navCtrl.pop()" to close the modal insted of using "dismiss()" function.

Note: Do not use "this.setRoot()" function right after closing the modal

@hugoblanc
Copy link

"devDependencies": { "@angular/tsc-wrapped": "^4.4.0-RC.0", "@ionic/app-scripts": "^2.1.3", "@ionic/cli-build-ionic-angular": "0.0.4", "@ionic/cli-plugin-ionic-angular": "1.4.1", "ionic": "3.12.0", "typescript": "2.3.4" },

Same issue with ionic 3.12 if you are using (tap)="methode()' instead of (click)="methode()"

tap on button will close the popover but click works fine

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants