From 38e7dd937ef182635b4f2ecbd796e0a2784889d6 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <31238760+cloydlau@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:38:56 +0800 Subject: [PATCH 1/2] fix: revert the "text mode loads partially scrolled down" fix (#471) --- src/lib/components/modes/textmode/TextMode.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/modes/textmode/TextMode.svelte b/src/lib/components/modes/textmode/TextMode.svelte index fb80dc6b..17b1efa6 100644 --- a/src/lib/components/modes/textmode/TextMode.svelte +++ b/src/lib/components/modes/textmode/TextMode.svelte @@ -618,8 +618,7 @@ codeMirrorView = new EditorView({ state, - parent: target, - scrollTo: EditorView.scrollIntoView(0) // see https://discuss.codemirror.net/t/editor-starts-partially-scrolled-down/7567 + parent: target }) return codeMirrorView From 0fcf6d7b6fe7738d6d634b42c1c0973b035f0a73 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Fri, 26 Jul 2024 09:40:07 +0200 Subject: [PATCH 2/2] chore(release): 0.23.8 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d700c51f..5c29b413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.23.8](https://github.com/josdejong/svelte-jsoneditor/compare/v0.23.7...v0.23.8) (2024-07-26) + + +### Bug Fixes + +* revert the "text mode loads partially scrolled down" fix ([#471](https://github.com/josdejong/svelte-jsoneditor/issues/471)) ([38e7dd9](https://github.com/josdejong/svelte-jsoneditor/commit/38e7dd937ef182635b4f2ecbd796e0a2784889d6)) + ### [0.23.7](https://github.com/josdejong/svelte-jsoneditor/compare/v0.23.6...v0.23.7) (2024-06-06) diff --git a/package-lock.json b/package-lock.json index 1389441d..70135465 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "svelte-jsoneditor", - "version": "0.23.7", + "version": "0.23.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "svelte-jsoneditor", - "version": "0.23.7", + "version": "0.23.8", "license": "ISC", "dependencies": { "@codemirror/autocomplete": "^6.16.2", diff --git a/package.json b/package.json index f14ed0c3..2185cd69 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "svelte-jsoneditor", "description": "A web-based tool to view, edit, format, transform, and validate JSON", - "version": "0.23.7", + "version": "0.23.8", "homepage": "https://github.com/josdejong/svelte-jsoneditor", "repository": { "type": "git",