Skip to content

Commit

Permalink
docs: sync tutorial/step-7&8 change
Browse files Browse the repository at this point in the history
vuejs/docs#2712

add verify to avoid empty content for newTodo

Signed-off-by: Sunrisepeak <[email protected]>
  • Loading branch information
Sunrisepeak authored and Justineo committed Feb 26, 2024
1 parent c76b419 commit d419bfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tutorial/src/step-7/App/template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form @submit.prevent="addTodo">
<input v-model="newTodo">
<button>Add Todo</button>
<input v-model="newTodo" required placeholder="new todo">
<button>Add Todo</button>
</form>
<ul>
<li v-for="todo in todos" :key="todo.id">
Expand Down
2 changes: 1 addition & 1 deletion src/tutorial/src/step-8/App/template.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form @submit.prevent="addTodo">
<input v-model="newTodo">
<input v-model="newTodo" required placeholder="new todo">
<button>Add Todo</button>
</form>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion src/tutorial/src/step-8/_hint/App/template.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<form @submit.prevent="addTodo">
<input v-model="newTodo">
<input v-model="newTodo" required placeholder="new todo">
<button>Add Todo</button>
</form>
<ul>
Expand Down

0 comments on commit d419bfc

Please sign in to comment.