Only join a room when enter is hit when the join button is shown
This commit is contained in:
@@ -59,7 +59,7 @@ export default class DirectorySearchBox extends React.Component {
|
||||
}
|
||||
|
||||
_onKeyUp(ev) {
|
||||
if (ev.key == 'Enter') {
|
||||
if (ev.key == 'Enter' && this.props.showJoinButton) {
|
||||
if (this.props.onJoinClick) {
|
||||
this.props.onJoinClick(this.state.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user