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

[beta.11] Alert buttons do not dismiss or call their handlers when a loading component is also showing

Open jasonwaters opened this issue 10 years ago • 3 comments

see https://forum.ionicframework.com/t/beta-11-button-handler-in-alerts-does-not-get-called/59691/2

Short description of the problem:

In my application, an alert is sometimes displayed on top of a loading component. But when that happens the buttons do not respond to clicks.

What behavior are you expecting?

I was expecting the buttons to work regardless.

Steps to reproduce:

  1. create and display a Loading component
  2. create and display an alert
  3. try to click the alert button

Diagnosis: When a loading component is showing, for whatever reason, it prevents the ionViewDidEnter event from being fired on the alert component. ionViewDidEnter is what sets the enabled property to true. Since enabled never gets set, the button clicks are short circuited in that event handler.

Which Ionic Version? 2.0.0beta11

jasonwaters avatar Aug 06 '16 05:08 jasonwaters

I have the same issue #7565.

Kobzol avatar Aug 06 '16 10:08 Kobzol

+1

haydenJogs92 avatar Aug 08 '16 02:08 haydenJogs92

Hello! Thanks for opening an issue with us! I am going to be closing this issue as a duplicate of https://github.com/driftyco/ionic/issues/7565. Thanks for using Ionic!

jgw96 avatar Aug 08 '16 05:08 jgw96