浏览代码

Merge remote-tracking branch 'origin/master' into aakansha-baseline

Aakansha Doshi 2 年之前
父节点
当前提交
7f1ef7562c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/element/textWysiwyg.tsx

+ 1 - 0
src/element/textWysiwyg.tsx

@@ -311,6 +311,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()) {