fix: prevent execution while submitting
This commit is contained in:
committed by
mrugesh
parent
040eb2d51d
commit
feb96c3e3b
@ -40,6 +40,9 @@ const mapDispatchToProps = function(dispatch) {
|
||||
handleKeypress: e => {
|
||||
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
|
||||
e.preventDefault();
|
||||
// Since Hotkeys also listens to Ctrl + Enter we have to stop this event
|
||||
// getting to it.
|
||||
e.stopPropagation();
|
||||
dispatch(submitChallenge());
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user