Skip to content

Commit 2022b0a

Browse files
shubham sharmashubham sharma
authored andcommitted
fixed magento#14266 issue
1 parent c5643da commit 2022b0a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ define([
9393
* @returns {Object} Chainable.
9494
*/
9595
initModalEvents: function () {
96-
this.options.keyEventHandlers.escapeKey = this.options.outerClickHandler = this[this.onCancel].bind(this);
96+
this.options.keyEventHandlers.escapeKey = this[this.onCancel].bind(this);
9797

9898
return this;
9999
},

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,7 @@ define([
415415
* Creates overlay, append it to wrapper, set previous click event on overlay.
416416
*/
417417
_createOverlay: function () {
418-
var events,
419-
outerClickHandler = this.options.outerClickHandler || this.closeModal;
420-
418+
var events;
421419
this.overlay = $('.' + this.options.overlayClass);
422420

423421
if (!this.overlay.length) {

0 commit comments

Comments
 (0)