mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6757 - fix js error when press enter in the confirmation dialog (#6589)
This commit is contained in:
committed by
Joram Wilander
parent
04088009f8
commit
fb55d9cc7d
@@ -35,7 +35,7 @@ export default class ConfirmModal extends React.Component {
|
||||
|
||||
handleKeypress(e) {
|
||||
if (e.key === 'Enter' && this.props.show) {
|
||||
this.props.onConfirm();
|
||||
this.props.onConfirm(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user