diff --git a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts index 94f6fd673b..9b12a88138 100644 --- a/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts +++ b/web/app/components/workflow/note-node/note-editor/plugins/link-editor-plugin/hooks.ts @@ -29,6 +29,7 @@ export const useOpenLink = () => { const unregister = mergeRegister( editor.registerUpdateListener(() => { + clearTimeout(updateTimer) updateTimer = setTimeout(() => { const { selectedLinkUrl, @@ -54,6 +55,7 @@ export const useOpenLink = () => { editor.registerCommand( CLICK_COMMAND, (payload) => { + clearTimeout(clickTimer) clickTimer = setTimeout(() => { const { selectedLinkUrl,