Fix input fields behavior when node is not selected
This commit is contained in:
parent
04f5da3bd4
commit
2aa273166d
1 changed files with 7 additions and 0 deletions
|
|
@ -80,6 +80,13 @@ export default function GenericNode({
|
||||||
countHandles();
|
countHandles();
|
||||||
}, [data, data.node]);
|
}, [data, data.node]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!selected) {
|
||||||
|
setInputName(false);
|
||||||
|
setInputDescription(false);
|
||||||
|
}
|
||||||
|
}, [selected]);
|
||||||
|
|
||||||
// State for outline color
|
// State for outline color
|
||||||
const sseData = useFlowStore((state) => state.sseData);
|
const sseData = useFlowStore((state) => state.sseData);
|
||||||
const isBuilding = useFlowStore((state) => state.isBuilding);
|
const isBuilding = useFlowStore((state) => state.isBuilding);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue