2
0
Эх сурвалжийг харах

render PageView always in order to keep CommentEditor state

Yuki Takei 2 жил өмнө
parent
commit
e481878f55

+ 3 - 3
apps/app/src/components/Page/DisplaySwitcher.tsx

@@ -27,11 +27,11 @@ export const DisplaySwitcher = (props: Props): JSX.Element => {
   usePageUpdatedEffect();
   useHashChangedEffect();
 
-  const isViewMode = editorMode === EditorMode.View;
-
   return (
     <>
-      { isViewMode && pageView }
+      <div className="d-edit-none">
+        {pageView}
+      </div>
 
       <LazyRenderer shouldRender={isEditable === true && editorMode === EditorMode.Editor}>
         { isLatestRevision