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/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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitalk-react",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "LolipopJ",