mirror of
https://github.com/outline/outline.git
synced 2026-11-26 23:50:14 +03:00
fix: Reset editing state when collection/document title is unmodified (#9221)
This commit is contained in:
1 parent
90af35d4bd
commit
d50f0986bb
1 file changed
+1
@@ -69,6 +69,7 @@ function EditableTitle(
|
||||
|
||||
if (trimmedValue === originalValue || trimmedValue.length === 0) {
|
||||
setValue(originalValue);
|
||||
setIsEditing(false);
|
||||
onCancel?.();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user