We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474710e commit 4c198d1Copy full SHA for 4c198d1
src/components/TodoForm.ts
@@ -1,7 +1,6 @@
1
2
export default class TodoForm {
3
private readonly $form = document.createElement("form");
4
- private isInit = false;
5
6
constructor(
7
private readonly $target: HTMLElement,
@@ -17,8 +16,6 @@ export default class TodoForm {
17
16
<button>추가</button>
18
`;
19
20
- if (this.isInit) return;
21
-
22
this.$form.addEventListener("submit", (e) => {
23
e.preventDefault();
24
const $todo = this.$form.querySelector<HTMLInputElement>("input[name=todo]");
0 commit comments