Skip to content

Commit 3cdc365

Browse files
committed
Reset form fields and position
1 parent ad077a3 commit 3cdc365

File tree

1 file changed

+5
-1
lines changed
  • packages/block-library/src/post-comments-form

1 file changed

+5
-1
lines changed

packages/block-library/src/post-comments-form/view.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ store( {
109109
`#${ newComment.id }`
110110
);
111111

112-
ref.reset();
112+
// Reset form fields and position.
113+
context.core.comments.formSlot = undefined;
114+
context.core.comments.fields = {
115+
comment_parent: 0,
116+
};
113117
}
114118

115119
context.core.comments.isSubmitting = false;

0 commit comments

Comments
 (0)