Skip to content

Commit 7f98433

Browse files
committed
Merge pull request #189 from magento-vanilla/PR
[Vanilla] Bugfixes
2 parents 617ef60 + de4fdb9 commit 7f98433

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

lib/web/mage/backend/suggest.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -811,15 +811,19 @@
811811
* @private
812812
*/
813813
_renderMultiselect: function () {
814+
var that = this;
814815
this.element.wrap(this.options.multiSuggestWrapper);
815816
this.elementWrapper = this.element.closest('[data-role="parent-choice-element"]');
816-
this._getOptions().each($.proxy(function (i, option) {
817-
option = $(option);
818-
this._createOption({
819-
id: option.val(),
820-
label: option.text()
821-
});
822-
}, this));
817+
$(function () {
818+
that._getOptions()
819+
.each(function (i, option) {
820+
option = $(option);
821+
that._createOption({
822+
id: option.val(),
823+
label: option.text()
824+
});
825+
});
826+
});
823827
},
824828

825829
/**

0 commit comments

Comments
 (0)