gitalk-react 1.0.0-beta.7 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-zh-CN.md +1 -1
- package/README.md +1 -1
- package/dist/gitalk.js +31 -30
- package/dist/gitalk.umd.cjs +6 -6
- package/lib/gitalk.tsx +2 -1
- package/package.json +1 -1
package/lib/gitalk.tsx
CHANGED
|
@@ -735,7 +735,7 @@ const Gitalk: React.FC<GitalkProps> = (props) => {
|
|
|
735
735
|
if (prevComment) {
|
|
736
736
|
repliedCommentBodyArray.unshift("", "");
|
|
737
737
|
}
|
|
738
|
-
repliedCommentBodyArray.push(""
|
|
738
|
+
repliedCommentBodyArray.push("");
|
|
739
739
|
const newComment = `${prevComment}${repliedCommentBodyArray.join("\n")}`;
|
|
740
740
|
return newComment;
|
|
741
741
|
});
|
|
@@ -797,6 +797,7 @@ const Gitalk: React.FC<GitalkProps> = (props) => {
|
|
|
797
797
|
|
|
798
798
|
{/* Comment textarea */}
|
|
799
799
|
<CommentTextarea
|
|
800
|
+
ref={textareaRef}
|
|
800
801
|
value={inputComment}
|
|
801
802
|
onChange={(e) => setInputComment(e.target.value)}
|
|
802
803
|
onFocus={onCommentInputFocus}
|