add select2 destroy method
This commit is contained in:
6
src/inputs/select2/select2.js
vendored
6
src/inputs/select2/select2.js
vendored
@@ -229,6 +229,12 @@ $(function(){
|
||||
}
|
||||
}
|
||||
return source;
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
if(this.$input.data('select2')) {
|
||||
this.$input.select2('destroy');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user