Prevent duplicate REST API requests on submitting account personal note with ctrl+enter (#34213)
This commit is contained in:
parent
f7b1769e8a
commit
290d57d6d9
@ -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…
x
Reference in New Issue
Block a user