Skip to content

Commit

Permalink
fix: Fix the issue that the text is undefined. #103
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 22, 2021
1 parent b1724c7 commit f10608e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const InternalMDEditor = (
...previewOptions,
ref: previewRef,
onScroll: handleScroll,
source: value,
source: value || '',
} as unknown) as MarkdownPreviewProps;
return (
<Fragment>
Expand Down Expand Up @@ -231,7 +231,7 @@ const InternalMDEditor = (
tabSize={tabSize}
className={`${prefixCls}-input`}
prefixCls={prefixCls}
value={value}
value={value || ''}
autoFocus={autoFocus}
{...textareaProps}
onScroll={handleScroll}
Expand Down

1 comment on commit f10608e

@vercel
Copy link

@vercel vercel bot commented on f10608e Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.