From 0f3bd85b8dddc6805e260a9d19cadcc603a12e17 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 5 Jun 2017 11:57:50 -0400 Subject: Allow switching to private channels with /join command (#6579) --- webapp/components/confirm_modal.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'webapp/components/confirm_modal.jsx') diff --git a/webapp/components/confirm_modal.jsx b/webapp/components/confirm_modal.jsx index 94f27a3e2..0adf06906 100644 --- a/webapp/components/confirm_modal.jsx +++ b/webapp/components/confirm_modal.jsx @@ -22,9 +22,7 @@ export default class ConfirmModal extends React.Component { } componentWillUnmount() { - if (!this.props.show) { - document.removeEventListener('keypress', this.handleKeypress); - } + document.removeEventListener('keypress', this.handleKeypress); } componentWillReceiveProps(nextProps) { -- cgit v1.2.3-1-g7c22