[Glitch] Prevent duplicate REST API requests on submitting account personal note with ctrl+enter
Port 290d57d6d9c663b570f72df397152d7d63880392 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
f1fa6b3cd0
commit
e63d474eb8
@ -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