Skip to content

Commit 997959f

Browse files
Fixed prompt issue with latest updates
1 parent 5d676b6 commit 997959f

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ define([
154154
*/
155155
closeModal: function (result) {
156156
var value;
157-
158-
if (result) {
157+
if (result && !(result instanceof $.Event)) {
159158
if (this.options.validation && !this.validate()) {
160159
return false;
161160
}

0 commit comments

Comments
 (0)