casparss / racket-meetup-mobile

Racket Meetup is a tennis social media app built in Typescript with Angular 5 on Ionic 4
0 stars 0 forks source link

Multiple click issue #1

Closed casparss closed 7 years ago

casparss commented 7 years ago

Context

Specifically on the Welcome screen, clicking the switch to login/signup button will trigger the event handler 14 times every tap/click, which is an even number so the menu just doesn't toggle the desired state. The behaviour has been seen on a number of other buttons around the app.

Diagnosis

Looks like a possible cause could be the dodgy ngModule setup which i've been using. Upon removing everything and including a single click handler on a button, the events fired as intended, so going to refactor out the module hierarchy to see if this fixes the issue.

casparss commented 7 years ago

Refactor worked and has fixed all events issues. Availability module is fixed as well.