Browse Source

fix: data not passed in select2-loaded event

vitalets 12 năm trước cách đây
mục cha
commit
c57dd1f0ff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1617,7 +1617,7 @@ the specific language governing permissions and limitations under the Apache Lic
 
                 postRender();
 
-                this.opts.element.trigger({ type: "select2-loaded", data:data });
+                this.opts.element.trigger({ type: "select2-loaded", items: data });
             })});
         },