You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _PresentAlertOperation sets a listener for when an AlertView should be canceled from presenting. However the operation also clones the AlertView, but sets the listener on the cloned AlertView and not the original. So the developer's copy of the AlertView never gets the correct listener attached.
Reproduction Steps
Pause the AlertManager's task queue with
screenManager._alertManager._canRunTasks = false;
This allows you to cancel an alert without it immediately presenting.
2. Try to present an alert, but cancel it immediately after.
Bug Report
The _PresentAlertOperation sets a listener for when an AlertView should be canceled from presenting. However the operation also clones the AlertView, but sets the listener on the cloned AlertView and not the original. So the developer's copy of the AlertView never gets the correct listener attached.
Reproduction Steps
This allows you to cancel an alert without it immediately presenting.
2. Try to present an alert, but cancel it immediately after.
Expected Behavior
The AlertView is not presented, and a message is logged stating that the Alert was canceled before presenting.
Observed Behavior
The AlertView is presented, and no message is logged about the Alert being canceled.
The text was updated successfully, but these errors were encountered: