Skip to content

Commit 9c5528f

Browse files
author
Sergiy Zhovnir
committed
Fixed the wrong behavior for a prompt modal when a user clicks on the overlay
1 parent 1a77b70 commit 9c5528f

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Ui/view/base/web/js/modal

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ define([
111111
_create: function () {
112112
this.options.focus = this.options.promptField;
113113
this.options.validation = this.options.validation && this.options.validationRules.length;
114+
this.options.outerClickHandler = this.options.outerClickHandler || _.bind(this.closeModal, this, false);
114115
this._super();
115116
this.modal.find(this.options.modalContent).append(this.getFormTemplate());
116117
this.modal.find(this.options.modalCloseBtn).off().on('click', _.bind(this.closeModal, this, false));

0 commit comments

Comments
 (0)