From ae2fe713539d5bdb59018e759a0bd2b1b7fdebae Mon Sep 17 00:00:00 2001 From: Iniubong Obonguko Date: Sun, 7 Jul 2024 07:34:33 +0100 Subject: [PATCH] fix: bug with text being cleared when input is not manually out of focus (#377) --- apps/dashboard/src/lib/components/TextEditor/index.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/dashboard/src/lib/components/TextEditor/index.svelte b/apps/dashboard/src/lib/components/TextEditor/index.svelte index 0d7e873d..35790854 100644 --- a/apps/dashboard/src/lib/components/TextEditor/index.svelte +++ b/apps/dashboard/src/lib/components/TextEditor/index.svelte @@ -56,10 +56,9 @@ editor.on('Paste Change input Undo Redo', function () { clearTimeout(editorChangeHandlerId); + const html = editor.getContent(); editorChangeHandlerId = setTimeout(function () { - console.log('changed'); - const html = editor.getContent(); if (onChange) { onChange(html); }