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)