Prevent duplicate REST API requests on submitting account personal note with ctrl+enter (#34213)
This commit is contained in:
parent
f7b1769e8a
commit
290d57d6d9
1 changed files with 2 additions and 2 deletions
|
@ -101,10 +101,10 @@ class AccountNote extends ImmutablePureComponent {
|
|||
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
|
||||
e.preventDefault();
|
||||
|
||||
this._save();
|
||||
|
||||
if (this.textarea) {
|
||||
this.textarea.blur();
|
||||
} else {
|
||||
this._save();
|
||||
}
|
||||
} else if (e.keyCode === 27) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue