1
0
mirror of synced 2025-02-04 06:09:23 +03:00

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"
This commit is contained in:
Andrew Velis 2013-10-06 21:27:40 -07:00
parent 435b2581ff
commit f39ab3080e

View File

@ -2857,7 +2857,7 @@ the specific language governing permissions and limitations under the Apache Lic
} }
selected.remove(); 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 }); this.triggerChange({ removed: data });
}, },