Explorar o código

Fix for #1518. Update to select2.js to trigger properly named event.

By the documentation the event that should be fired is "select2-removed" however the event that actually gets fired is called "removed"
Andrew Velis %!s(int64=11) %!d(string=hai) anos
pai
achega
f39ab3080e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2857,7 +2857,7 @@ the specific language governing permissions and limitations under the Apache Lic
             }
             selected.remove();
 
-            this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
+            this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data });
             this.triggerChange({ removed: data });
         },