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.
2 parents 617ef60 + de4fdb9 commit 7f98433Copy full SHA for 7f98433
lib/web/mage/backend/suggest.js
@@ -811,15 +811,19 @@
811
* @private
812
*/
813
_renderMultiselect: function () {
814
+ var that = this;
815
this.element.wrap(this.options.multiSuggestWrapper);
816
this.elementWrapper = this.element.closest('[data-role="parent-choice-element"]');
- this._getOptions().each($.proxy(function (i, option) {
817
- option = $(option);
818
- this._createOption({
819
- id: option.val(),
820
- label: option.text()
821
- });
822
- }, this));
+ $(function () {
+ that._getOptions()
+ .each(function (i, option) {
+ option = $(option);
+ that._createOption({
+ id: option.val(),
823
+ label: option.text()
824
+ });
825
826
827
},
828
829
/**
0 commit comments