fix: don't jump text to end when out of viewport in safari (#6416)

This commit is contained in:
Aakansha Doshi 2023-04-05 12:17:18 +05:30 committed by GitHub
parent d2b8f4d2f8
commit d61b3cf83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {