From d61b3cf83d0a6f174abc27e0e4f5ca5cc6725fdd Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 5 Apr 2023 12:17:18 +0530 Subject: [PATCH] fix: don't jump text to end when out of viewport in safari (#6416) --- src/element/textWysiwyg.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index d9a7505f..4e8ef3a5 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -297,6 +297,7 @@ export const textWysiwyg = ({ filter: "var(--theme-filter)", maxHeight: `${editorMaxHeight}px`, }); + editable.scrollTop = 0; // For some reason updating font attribute doesn't set font family // hence updating font family explicitly for test environment if (isTestEnv()) {