diff --git a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/EditableFieldTitle.tsx b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/EditableFieldTitle.tsx
index e02b1a1474..04bcd81db8 100644
--- a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/EditableFieldTitle.tsx
+++ b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/EditableFieldTitle.tsx
@@ -37,7 +37,8 @@ const EditableFieldTitle = forwardRef((props: Props, ref) => {
const [localTitle, setLocalTitle] = useState(label || fieldTemplateTitle || t('nodes.unknownField'));
const handleSubmit = useCallback(
- async (newTitle: string) => {
+ async (newTitleRaw: string) => {
+ const newTitle = newTitleRaw.trim();
if (newTitle && (newTitle === label || newTitle === fieldTemplateTitle)) {
return;
}
@@ -57,22 +58,22 @@ const EditableFieldTitle = forwardRef((props: Props, ref) => {
}, [label, fieldTemplateTitle, t]);
return (
- : undefined}
- openDelay={HANDLE_TOOLTIP_OPEN_DELAY}
+
- : undefined}
+ openDelay={HANDLE_TOOLTIP_OPEN_DELAY}
>
{
noOfLines={1}
color={isMissingInput ? 'error.300' : 'base.300'}
/>
-
-
-
-
+
+
+
+
);
});
@@ -127,7 +128,15 @@ const EditableControls = memo(() => {
}
return (
-
+
);
});