New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set default_id and cancel_id correctly on confirm dialogs #17547
Conversation
29a33ed
to
afed92a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Release Notes Persisted
|
I have automatically backported this PR to "5-0-x", please check out #17578 |
@MarshallOfSound would it be possible to backport this to 4.x? Seems worth it given the potential consequences of wrongly confirming something. |
@jsteiner I don't think 4.x has this bug and can't verify rn. Can you repro for 4? |
@MarshallOfSound yeah, we're seeing this issue on 4.0.1. It does seem to have the same hardcoded line of code on the |
Description of Change
Sets
cancel_id
to the Cancel button anddefault_id
to the OK button in CONFIRM type dialogs. (window.confirm
)Fixes #17502
Release Notes
Notes: Fixed the handling of the escape key in dialogs created by
window.confirm
. The "Cancel" button is now triggered by the escape key, and the "OK" button is now triggered by the return key.