fix: make node be maximized when adding more handles (#7320)

Add useEffect to maximize node that is not minimal
This commit is contained in:
Lucas Oliveira 2025-03-28 22:27:42 -03:00 committed by GitHub
commit f5c7df3a6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,6 +199,14 @@ const NodeToolbarComponent = memo(
});
}, [isMinimal, showNode, data.id]);
useEffect(() => {
if (!isMinimal && !showNode) {
setShowNode(true);
updateNodeInternals(data.id);
return;
}
}, [isMinimal, showNode, data.id]);
const handleungroup = useCallback(() => {
if (isGroup) {
takeSnapshot();