Skip to content

Commit 39382fa

Browse files
committed
Fixing 'Type mismatch' exception in destroy in IE11
1 parent a6c9b12 commit 39382fa

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
@@ -850,7 +850,7 @@ the specific language governing permissions and limitations under the Apache Lic
850850

851851
this.close();
852852

853-
if (element.length && element[0].detachEvent) {
853+
if (element.length && element[0].detachEvent && self._sync) {
854854
element.each(function () {
855855
this.detachEvent("onpropertychange", self._sync);
856856
});

0 commit comments

Comments
 (0)