From 0a9e7406f9b7c1f0df549f001a03f676ce67baa5 Mon Sep 17 00:00:00 2001 From: ViridianCitrus Date: Sat, 25 Nov 2023 23:31:58 -0500 Subject: [PATCH] Fix no-change edit issue --- dashboard/src/components/EditableTextfield.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/src/components/EditableTextfield.tsx b/dashboard/src/components/EditableTextfield.tsx index 9ea9a35a9..12ec942df 100644 --- a/dashboard/src/components/EditableTextfield.tsx +++ b/dashboard/src/components/EditableTextfield.tsx @@ -51,6 +51,7 @@ export default function EditableTextfield({ setError(error); setIsLoading(false); if (!error) setDisplayText(trimmed); + setIsEditing(false); }; const onCancel = () => { @@ -123,7 +124,7 @@ export default function EditableTextfield({ type === 'heading' ? 'text-gray-300 decoration-2 underline-offset-[6px]' : 'text-gray-500' - } + } ml-[-1ch] mr-[-0.5ch] truncate bg-transparent group-hover:text-gray-300 group-hover:underline ${textClassName}`} onClick={() => { setIsEditing(true);