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
When the dialog shows up, the "Cancel" button should be selected by default since defaultId is set to 1. However, the default button is "Delete". This is confirmed by pressing Enter - in that case the message This button was pressed: 0 is displayed.
Actual Behavior
Instead of selecting Cancel by default it is selecting Delete, as if the defaultId option was ignored.
The text was updated successfully, but these errors were encountered:
This was fixed in #17547 and backport to 5-0-x. Can you upgrade to that version and test it out. If the same issue occurs please @ mention me in a follow up comment below and I can re-open 👍
Preflight Checklist
Issue Details
Expected Behavior
I've created some simple code to replicate the issue:
When the dialog shows up, the "Cancel" button should be selected by default since
defaultId
is set to 1. However, the default button is "Delete". This is confirmed by pressing Enter - in that case the messageThis button was pressed: 0
is displayed.Actual Behavior
Instead of selecting Cancel by default it is selecting Delete, as if the
defaultId
option was ignored.The text was updated successfully, but these errors were encountered: