We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42d48a commit d6995f7Copy full SHA for d6995f7
app/code/Magento/Ui/view/base/web/js/modal/prompt.js
@@ -73,10 +73,10 @@ define([
73
* close modal window
74
* @param {Object} event - event
75
*/
76
- escapeKey: function () {
77
- if (this.options.isOpen && this.modal.find(document.activeElement).length ||
78
- this.options.isOpen && this.modal[0] === document.activeElement) {
79
- this._close();
+ escapeKey: function (event) {
+ if (this.modal.find(document.activeElement).length ||
+ this.modal[0] === document.activeElement) {
+ this.closeModal();
80
}
81
82
0 commit comments