Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterClose() {
focusTrap.deactivate(this.refs.modal);
this.props.onAfterClose();
},
componentWillUnmount() {
jQuery( 'body' )
.removeClass( 'dops-modal-showing' )
.off( 'touchmove.dopsmodal', false );
jQuery( document ).unbind( 'keyup', this.handleEscapeKey );
try {
focusTrap.deactivate();
} catch ( e ) {
//noop
}
}