Skip to content

Commit

Permalink
Merge pull request #9962 from eVoloshchak/eVoloshchak_dropdownMenu
Browse files Browse the repository at this point in the history
Fix issue with dropdown opening when using 'Enter' to create a new room
  • Loading branch information
marcochavezf authored Jul 18, 2022
2 parents 4f27bd1 + 06a2471 commit a51e421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class Button extends Component {
if (!this.props.isFocused || this.props.isDisabled || this.props.isLoading || (e && e.target.nodeName === 'TEXTAREA')) {
return;
}
e.preventDefault();
this.props.onPress();
}, shortcutConfig.descriptionKey, shortcutConfig.modifiers, true, false, this.props.enterKeyEventListenerPriority, false);
}
Expand Down

0 comments on commit a51e421

Please sign in to comment.