Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
const { autoSize } = this.props;
autoSize && autosize.destroy(this.textarea);
}
return () => {
autosize.destroy(el);
};
}, [autoSize, ref]);
willDestroyElement() {
this._super(...arguments);
autosize.destroy(this.element.querySelector('textarea'));
},
displayOnly: false,
beforeRemove : function(callback) {
autosize.destroy(this.element.querySelectorAll("textarea"));
callback();
}
componentWillUnmount() {
autosize.destroy(this.textarea);
window.clearTimeout(this.timeoutId);
window.removeEventListener('resize', this.update);
}
update() {
componentWillUnmount() {
if (this.props.autoresize) {
autosize.destroy(this._textarea);
}
}
componentWillUnmount() {
autosize.destroy( this.refs.textarea );
}
componentWillUnmount() {
autosize.destroy(this.embedCodeInput);
}
let syncContentEvt = (_el) => {
let _v = 'comment';
let _val = (_el.value || '');
_val = Emoji.parse(_val);
_el.value = _val;
let ret = xssFilter(marked(_val));
defaultComment[_v] = ret;
_vpreview.innerHTML = ret;
if (_val) autosize(_el);
else autosize.destroy(_el)
}