Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor(web): remove mouseup listener in use-resize-panel cleanup (#32636)

HaKu8ff51a58fdec
diff --git a/web/app/components/workflow/nodes/_base/hooks/use-resize-panel.ts b/web/app/components/workflow/nodes/_base/hooks/use-resize-panel.ts
index 336c440d58c..cbda7daa09e 100644
--- a/web/app/components/workflow/nodes/_base/hooks/use-resize-panel.ts
+++ b/web/app/components/workflow/nodes/_base/hooks/use-resize-panel.ts
@@ -111,6 +111,7 @@ export const useResizePanel = (params?: UseResizePanelParams) => {
if (element)
element.removeEventListener('mousedown', handleStartResize)
document.removeEventListener('mousemove', handleResize)
+ document.removeEventListener('mouseup', handleStopResize)
}
}, [handleStartResize, handleResize, handleStopResize])