Skip to content

Commit 540cdb5

Browse files
0m3rgelanivishal
authored andcommitted
Fix for #14593 (duo over)
1 parent b50caeb commit 540cdb5

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/modal

1 file changed

+3
-2
lines changed

app/code/Magento/Ui/view/base/web/js/modal/modal.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@ define([
100100
/**
101101
* Escape key press handler,
102102
* close modal window
103+
* @param {Object} event - event
103104
*/
104-
escapeKey: function () {
105+
escapeKey: function (event) {
105106
if (this.options.isOpen && this.modal.find(document.activeElement).length ||
106107
this.options.isOpen && this.modal[0] === document.activeElement) {
107-
this.closeModal();
108+
this.closeModal(event);
108109
}
109110
}
110111
}

0 commit comments

Comments
 (0)