File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
content/docs/en/getting-started Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ new Vue({
229
229
console .log (' Task with index: ' + args .index + ' tapped' ); // Logs tapped tasks in the console for debugging.
230
230
},
231
231
onButtonTap () {
232
- if (this .textFieldValue === " " ) return // Prevent user input empty string
232
+ if (this .textFieldValue === " " ) return ; // Prevents users from entering an empty string.
233
233
console .log (" New task added: " + this .textFieldValue + " ." ); // Logs the newly added task in the console for debugging.
234
234
this .todos .unshift ({ name: this .textFieldValue }); // Adds tasks in the ToDo array. Newly added tasks are immediately shown on the screen.
235
235
this .textFieldValue = " " ; // Clears the text field so that users can start adding new tasks immediately.
You can’t perform that action at this time.
0 commit comments