diff --git a/src/components/PostCreate/PostCreate.tsx b/src/components/PostCreate/PostCreate.tsx index 4ff44c6ef..be117dc0d 100644 --- a/src/components/PostCreate/PostCreate.tsx +++ b/src/components/PostCreate/PostCreate.tsx @@ -97,6 +97,7 @@ export const PostCreate: React.FC = props => { const handlePostUrlChange = (url: string | null) => { setImport(url); + setEditorValue(url); }; const handleConfirmNSFWTags = (tags: string[]) => { diff --git a/src/components/PostImport/PostImport.tsx b/src/components/PostImport/PostImport.tsx index 3eaa3ea51..0be5af5be 100644 --- a/src/components/PostImport/PostImport.tsx +++ b/src/components/PostImport/PostImport.tsx @@ -54,11 +54,11 @@ export const PostImport: React.FC = props => { event: React.ChangeEvent, ): void => { const url = event.target.value; - setError(null); setUrl(url); setSocial(null); setPostId(null); + onChange(url); if (isUrl(url)) { parseUrl(url);