Skip to content

Commit 397341a

Browse files
authored
ENGCOM-5278: [Ui] Calling the always action on opening and closing the modal. #23234
2 parents 4aeadb5 + 885f06e commit 397341a

File tree

1 file changed

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

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,18 @@ define([
3939
}]
4040
},
4141

42+
/**
43+
* Create widget.
44+
*/
45+
_create: function () {
46+
this.options.actions.always();
47+
this._super();
48+
},
49+
4250
/**
4351
* Close modal window.
4452
*/
4553
closeModal: function () {
46-
this.options.actions.always();
4754
this.element.bind('alertclosed', _.bind(this._remove, this));
4855

4956
return this._super();

0 commit comments

Comments
 (0)