- Fix unmounting select2 component

- Fix subjects of welcome and notification newsletters
- Remove debugging statements
This commit is contained in:
Tautvidas Sipavičius
2016-04-07 15:44:14 +03:00
parent ad5441487b
commit 0c008325c4
5 changed files with 10 additions and 12 deletions

View File

@ -30,6 +30,9 @@ function(
.trigger('change');
}
},
componentWillUnmount: function() {
jQuery('#'+this.refs.select.id).select2('destroy');
},
setupSelect2: function() {
if(
!this.props.field.multiple
@ -161,4 +164,4 @@ function(
});
return Selection;
});
});