Überarbeitung des Pull Request, für Chico bitte offen lassen.
This commit is contained in:
@@ -41,10 +41,10 @@
|
||||
|
||||
function commitIfValid() {
|
||||
if (!error && !wasCancelled && localName != currentName) {
|
||||
editedName = localName.trim();
|
||||
const trimmedName: string = localName.trim();
|
||||
inputRef?.blur();
|
||||
isEditing = false;
|
||||
onSave(editedName, currentName);
|
||||
onSave(trimmedName, currentName);
|
||||
} else {
|
||||
localName = currentName;
|
||||
resetEdit();
|
||||
|
||||
Reference in New Issue
Block a user