Skip to content

Commit 2f656cc

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): fix field context menu jank
Closes #5551
1 parent 71f9ac9 commit 2f656cc

File tree

1 file changed

+15
-15
lines changed
  • invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields

1 file changed

+15
-15
lines changed

invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputField.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,28 +109,28 @@ const InputField = ({ nodeId, fieldName }: Props) => {
109109

110110
return (
111111
<InputFieldWrapper shouldDim={shouldDim}>
112-
<FieldContextMenu nodeId={nodeId} fieldName={fieldName} kind="input">
113-
{(ref) => (
114-
<FormControl
115-
ref={ref}
116-
isInvalid={isMissingInput}
117-
isDisabled={isConnected}
118-
orientation="vertical"
119-
px={2}
120-
>
121-
<Flex flexDir="column" w="full" gap={1}>
112+
<FormControl
113+
isInvalid={isMissingInput}
114+
isDisabled={isConnected}
115+
orientation="vertical"
116+
px={2}
117+
>
118+
<Flex flexDir="column" w="full" gap={1}>
119+
<FieldContextMenu nodeId={nodeId} fieldName={fieldName} kind="input">
120+
{(ref) => (
122121
<EditableFieldTitle
122+
ref={ref}
123123
nodeId={nodeId}
124124
fieldName={fieldName}
125125
kind="input"
126126
isMissingInput={isMissingInput}
127127
withTooltip
128128
/>
129-
<InputFieldRenderer nodeId={nodeId} fieldName={fieldName} />
130-
</Flex>
131-
</FormControl>
132-
)}
133-
</FieldContextMenu>
129+
)}
130+
</FieldContextMenu>
131+
<InputFieldRenderer nodeId={nodeId} fieldName={fieldName} />
132+
</Flex>
133+
</FormControl>
134134

135135
{fieldTemplate.input !== 'direct' && (
136136
<FieldHandle

0 commit comments

Comments
 (0)