diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-05 11:57:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 11:57:50 -0400 |
commit | 0f3bd85b8dddc6805e260a9d19cadcc603a12e17 (patch) | |
tree | 39288b866b71c610679c0a6ae1baab390b54468e /webapp/components/confirm_modal.jsx | |
parent | b0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab (diff) | |
download | chat-0f3bd85b8dddc6805e260a9d19cadcc603a12e17.tar.gz chat-0f3bd85b8dddc6805e260a9d19cadcc603a12e17.tar.bz2 chat-0f3bd85b8dddc6805e260a9d19cadcc603a12e17.zip |
Allow switching to private channels with /join command (#6579)
Diffstat (limited to 'webapp/components/confirm_modal.jsx')
-rw-r--r-- | webapp/components/confirm_modal.jsx | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |