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
Current behavior:
If two buttons in an alert both have the cancel role, only the first handler will ever be called, regardless of which button is pressed. Changing the roles to be different will result in expected behavior.
Expected behavior:
The handler for the pressed button should be called, regardless of its 'role'.
Steps to reproduce:
See code below.
Click "BUTTON 2"
Observe that the handler for "BUTTON 1" will have been called.
liamdebeasi
changed the title
bug: Duplicate Alert button handler 'role' values cause incorrect handlers to be executed
bug: adding buttons to alert with the same role causes the first handler to always be fired
Mar 16, 2021
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
If two buttons in an alert both have the
cancel
role, only the first handler will ever be called, regardless of which button is pressed. Changing the roles to be different will result in expected behavior.Expected behavior:
The handler for the pressed button should be called, regardless of its 'role'.
Steps to reproduce:
Related code:
Aside... can we get an updated StackBlitz/Plunkr for the latest version of Ionic Angular, etc? :) They are still on 3 & 4.
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: