Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 11a1c80

Browse files
authored
Merge pull request #776 from matrix-org/luke/fix-directory-search-enter
Only join a room when enter is hit if the join button is shown
2 parents d30ee91 + 98a0b80 commit 11a1c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/elements/DirectorySearchBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class DirectorySearchBox extends React.Component {
5959
}
6060

6161
_onKeyUp(ev) {
62-
if (ev.key == 'Enter') {
62+
if (ev.key == 'Enter' && this.props.showJoinButton) {
6363
if (this.props.onJoinClick) {
6464
this.props.onJoinClick(this.state.value);
6565
}

0 commit comments

Comments
 (0)