Skip to content

Commit 6587123

Browse files
committed
fix: сброс формы после сабмита
1 parent 99e3d0e commit 6587123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const initApp = () => {
2222
.catch((error) => {
2323
console.log("валидация не пройдена:", error.message);
2424
});
25+
e.target.reset();
2526
});
2627

2728
postsContainer.addEventListener("click", (e) => {

0 commit comments

Comments
 (0)