mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Only join a room when enter is hit when the join button is shown
This commit is contained in:
parent
91d10646b5
commit
98a0b804c7
@ -59,7 +59,7 @@ export default class DirectorySearchBox extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onKeyUp(ev) {
|
_onKeyUp(ev) {
|
||||||
if (ev.key == 'Enter') {
|
if (ev.key == 'Enter' && this.props.showJoinButton) {
|
||||||
if (this.props.onJoinClick) {
|
if (this.props.onJoinClick) {
|
||||||
this.props.onJoinClick(this.state.value);
|
this.props.onJoinClick(this.state.value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user