diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index 0ab7be5271..977a6330e9 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -65,15 +65,15 @@ const startScrollHeightCheck = () => { clearTimeout(timer) timer = setTimeout(() => { - if (scroll == null) { + if (content == null) { return } - if (content !== undefined && lastScrollHeight <= content?.scrollHeight && count <= waitCount) { + if (lastScrollHeight <= content?.scrollHeight && count <= waitCount) { count = lastScrollHeight < content.scrollHeight ? 0 : count + 1 lastScrollHeight = content.scrollHeight startScrollHeightCheck() - } else if (content !== undefined) { + } else { lastScrollHeight = -1 count = 0 diff --git a/packages/text-editor/src/components/CollaboratorEditor.svelte b/packages/text-editor/src/components/CollaboratorEditor.svelte index bb77d677aa..e617f12ea2 100644 --- a/packages/text-editor/src/components/CollaboratorEditor.svelte +++ b/packages/text-editor/src/components/CollaboratorEditor.svelte @@ -64,7 +64,7 @@ export let field: string | undefined = undefined - export let autoOverflow = false + export let overflow: 'auto' | 'none' = 'auto' export let initialContent: string | undefined = undefined export let textNodeActions: TextNodeAction[] = [] export let editorAttributes: { [name: string]: string } = {} @@ -347,7 +347,7 @@ {#if visible} {#if comparedVersion !== undefined || $$slots.tools} -