Fix Editor not triggering setText (#8368)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>pull/8264/head^2
parent
e27fc05d5f
commit
39b93cdb5b
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue