فهرست منبع

refs 121002: initialize editor on cancel

Futa Arai 3 سال پیش
والد
کامیت
0547da33b0
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      apps/app/src/components/PageComment/CommentEditor.tsx

+ 3 - 1
apps/app/src/components/PageComment/CommentEditor.tsx

@@ -128,10 +128,12 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
       setIsReadyToUse(false);
     }
 
+    initializeEditor();
+
     if (onCancelButtonClicked != null) {
       onCancelButtonClicked();
     }
-  }, [isForNewComment, onCancelButtonClicked]);
+  }, [isForNewComment, onCancelButtonClicked, initializeEditor]);
 
   const postCommentHandler = useCallback(async() => {
     try {