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
This seems pretty easy to implement in the escape key code by simply checking the disabled property if (!this['$_' + buttonKey].prop('disabled'))
if (buttonKey)
if (typeof this.buttons[buttonKey] === 'undefined') {
console.warn('Invalid escapeKey, no buttons found with key ' + buttonKey);
} else {
if (!this['$_' + buttonKey].prop('disabled'))
this['$_' + buttonKey].trigger('click');
}
jquery-confirm version:
v3.3.2
I'm submitting a ... (check one with "x")
[X ] bug report
[ ] feature request
[ ] support request
Current behavior:
When escapeKey is bound to a button, pressing escape closes the dialog when the button is disabled
Expected behavior:
The escape key should do nothing if the button to which it's bound is disabled.
The text was updated successfully, but these errors were encountered: