We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e94825 commit 4782b85Copy full SHA for 4782b85
.changeset/five-sloths-jam.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/repl': patch
3
4
+
5
+fix: inconsistent editor state for empty values
packages/repl/src/lib/CodeMirror.svelte
@@ -15,7 +15,7 @@
15
/** @type {import('./types').StartOrEnd | null} */
16
export let errorLoc = null;
17
18
- /** @type {import('@codemirror/lint').LintSource>} */
+ /** @type {import('@codemirror/lint').LintSource} */
19
export let diagnostics;
20
21
export let readonly = false;
@@ -52,7 +52,7 @@
52
lang = options.lang;
53
}
54
55
- if (options.code) {
+ if (options.code !== undefined) {
56
updating_externally = true;
57
58
const { scrollLeft: left, scrollTop: top } = $cmInstance.view.scrollDOM;
0 commit comments