We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc9d29 commit 17a8aa9Copy full SHA for 17a8aa9
app/code/Magento/Ui/view/base/web/js/modal/modal.js
@@ -131,7 +131,10 @@ define([
131
this._createWrapper();
132
this._renderModal();
133
this._createButtons();
134
- $(this.options.trigger).on('click', _.bind(this.toggleModal, this));
+
135
+ if (this.options.trigger) {
136
+ $(document).on('click', this.options.trigger, _.bind(this.toggleModal, this));
137
+ }
138
this._on(this.modal.find(this.options.modalCloseBtn), {
139
'click': this.options.modalCloseBtnHandler ? this.options.modalCloseBtnHandler : this.closeModal
140
});
0 commit comments