Skip to content

Commit

Permalink
Fixed issue with prompt closed on pressing escape key instead of hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
konarshankar07 committed Nov 14, 2019
1 parent c42d48a commit d6995f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/Magento/Ui/view/base/web/js/modal/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ define([
* close modal window
* @param {Object} event - event
*/
escapeKey: function () {
if (this.options.isOpen && this.modal.find(document.activeElement).length ||
this.options.isOpen && this.modal[0] === document.activeElement) {
this._close();
escapeKey: function (event) {
if (this.modal.find(document.activeElement).length ||
this.modal[0] === document.activeElement) {
this.closeModal();
}
}
}
Expand Down

0 comments on commit d6995f7

Please sign in to comment.