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.
2 parents ba8a2be + 7d4f26d commit 31b6f4aCopy full SHA for 31b6f4a
docs/2-browser-apps/06-project/_samples/todo/script.js
@@ -14,7 +14,7 @@ addButton.onclick = () => {
14
editButton.textContent = "編集";
15
editButton.onclick = () => {
16
const input = prompt("新しい内容を入力してください。");
17
- if (input !== "") todoText.textContent = input;
+ if (input !== "" && input !== null) todoText.textContent = input;
18
};
19
deleteButton.textContent = "削除";
20
deleteButton.onclick = () => {
0 commit comments