diff --git a/src/inputs/select2/select2.js b/src/inputs/select2/select2.js index be4c6d5..e4f53cc 100644 --- a/src/inputs/select2/select2.js +++ b/src/inputs/select2/select2.js @@ -294,9 +294,11 @@ $(function(){ }, destroy: function() { - if(this.$input.data('select2')) { - this.$input.select2('destroy'); - } + if(this.$input) { + if(this.$input.data('select2')) { + this.$input.select2('destroy'); + } + } } });