prevent dragging out of inputs
This commit is contained in:
@@ -215,6 +215,7 @@ function GroupNode({ id, data }: { id: string; data: NodeData }) {
|
||||
id={input.handleId}
|
||||
className="typed-handle"
|
||||
style={{ background: TYPE_COLORS[input.type] || 'var(--fallback-type)' }}
|
||||
isConnectableStart={false}
|
||||
/>
|
||||
<span className="io-label">{formatUiLabel(input.label || input.name)}</span>
|
||||
</>
|
||||
@@ -1239,6 +1240,7 @@ function CustomNode({ id, data }: { id: string; data: NodeData }) {
|
||||
id={`input::${socketName}::${socketType}`}
|
||||
className="typed-handle"
|
||||
style={{ background: TYPE_COLORS[socketType as string] || 'var(--fallback-type)' }}
|
||||
isConnectableStart={false}
|
||||
/>
|
||||
)}
|
||||
{(
|
||||
@@ -1278,6 +1280,7 @@ function CustomNode({ id, data }: { id: string; data: NodeData }) {
|
||||
id={`input::${inp.name}::${inp.type}`}
|
||||
className="typed-handle"
|
||||
style={{ background: TYPE_COLORS[inp.type as string] || 'var(--fallback-type)' }}
|
||||
isConnectableStart={false}
|
||||
/>
|
||||
<span className="io-label">{inp.label || inp.name}</span>
|
||||
{inlineWidgetsByInput.has(inp.name) && (
|
||||
@@ -1351,6 +1354,7 @@ function CustomNode({ id, data }: { id: string; data: NodeData }) {
|
||||
id={`input::${socketName}::${socketType}`}
|
||||
className="typed-handle"
|
||||
style={{ background: TYPE_COLORS[socketType as string] || 'var(--fallback-type)' }}
|
||||
isConnectableStart={false}
|
||||
/>
|
||||
)}
|
||||
{(w.socketType && connectedInputs?.has(w.name))
|
||||
|
||||
Reference in New Issue
Block a user