From 005f1896d8d05772435194c8d80bdf1244edf249 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 23 Nov 2023 14:00:46 +0100 Subject: [PATCH] fix: cleanup a console.log --- src/lib/components/modals/JSONEditorModal.svelte | 3 ++- src/lib/utils/domUtils.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/modals/JSONEditorModal.svelte b/src/lib/components/modals/JSONEditorModal.svelte index edc0b7da..cafa8861 100644 --- a/src/lib/components/modals/JSONEditorModal.svelte +++ b/src/lib/components/modals/JSONEditorModal.svelte @@ -12,6 +12,7 @@ JSONEditorSelection, JSONParser, JSONPathParser, + JSONSelection, OnClassName, OnPatch, OnRenderMenu, @@ -94,7 +95,7 @@ } function scrollToSelection() { - const selection: JSONPath | null = last(stack)?.selection || null + const selection: JSONEditorSelection | null = last(stack)?.selection || null if (selection) { refEditor.scrollTo(getFocusPath(selection)) } diff --git a/src/lib/utils/domUtils.ts b/src/lib/utils/domUtils.ts index 292eb218..4046f13e 100644 --- a/src/lib/utils/domUtils.ts +++ b/src/lib/utils/domUtils.ts @@ -243,7 +243,6 @@ export function insertActiveElementContents( if (activeElement && activeElement.isContentEditable) { activeElement.textContent = replaceContents ? text : activeElement.textContent + text - console.log('UPDATED TEXT', replaceContents ? text : activeElement.textContent + text) setCursorToEnd(activeElement) if (onActiveElement) { onActiveElement(activeElement)