Skip to content

Commit cf2b696

Browse files
committed
fire change on clear. fixes select2#558
1 parent a9741f9 commit cf2b696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,7 @@ the specific language governing permissions and limitations under the Apache Lic
17421742
this.setPlaceholder();
17431743

17441744
this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
1745+
this.triggerChange({removed:data});
17451746
},
17461747

17471748
/**
@@ -2352,7 +2353,6 @@ the specific language governing permissions and limitations under the Apache Lic
23522353
selected.remove();
23532354

23542355
this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
2355-
23562356
this.triggerChange({ removed: data });
23572357
},
23582358

0 commit comments

Comments
 (0)