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

Co-authored-by: 非法操作 <hjlarry@163.com>
This commit is contained in:
HaKu 2026-02-27 15:06:10 +08:00 committed by GitHub
parent f17c234a92
commit 8ff51a58fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])