Skip to content

Commit f39ab30

Browse files
committed
Fix for select2#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"
1 parent 435b258 commit f39ab30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

select2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ the specific language governing permissions and limitations under the Apache Lic
28572857
}
28582858
selected.remove();
28592859

2860-
this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
2860+
this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data });
28612861
this.triggerChange({ removed: data });
28622862
},
28632863

0 commit comments

Comments
 (0)