Fix Editor not triggering setText (#8368)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/8264/head^2
Hariom Balhara 2023-04-19 15:55:05 +05:30 committed by GitHub
parent e27fc05d5f
commit 39b93cdb5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@ const DescriptionEditor = (props: DescriptionEditorProps) => {
const [mounted, setIsMounted] = useState(false);
const { t } = useLocale();
const { description } = props;
const [firstRender, setFirstRender] = useState(true);
useEffect(() => {
setIsMounted(true);
}, []);
@ -92,6 +93,8 @@ const DescriptionEditor = (props: DescriptionEditorProps) => {
excludedToolbarItems={["blockType"]}
placeholder={t("quick_video_meeting")}
editable={props.editable}
firstRender={firstRender}
setFirstRender={setFirstRender}
/>
) : (
<SkeletonContainer>