Explorar o código

fire change on clear. fixes #558

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
cf2b696fd9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1742,6 +1742,7 @@ the specific language governing permissions and limitations under the Apache Lic
             this.setPlaceholder();
 
             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();
 
             this.opts.element.trigger({ type: "removed", val: this.id(data), choice: data });
-
             this.triggerChange({ removed: data });
         },