Skip to content

Commit

Permalink
Reset form fields and position
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Aug 25, 2023
1 parent ad077a3 commit 3cdc365
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/block-library/src/post-comments-form/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ store( {
`#${ newComment.id }`
);

ref.reset();
// Reset form fields and position.
context.core.comments.formSlot = undefined;
context.core.comments.fields = {
comment_parent: 0,
};
}

context.core.comments.isSubmitting = false;
Expand Down

0 comments on commit 3cdc365

Please sign in to comment.