fire change on clear. fixes #558
This commit is contained in:
parent
a9741f9998
commit
cf2b696fd9
@ -1742,6 +1742,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
this.setPlaceholder();
|
this.setPlaceholder();
|
||||||
|
|
||||||
this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
|
this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
|
||||||
|
this.triggerChange({removed:data});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2352,7 +2353,6 @@ 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: "removed", val: this.id(data), choice: data });
|
||||||
|
|
||||||
this.triggerChange({ removed: data });
|
this.triggerChange({ removed: data });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user