Skip to content

Commit 9cd85d0

Browse files
committed
Set name input text to maximum length of 255 characters long
1 parent 6eca978 commit 9cd85d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/NewTodo.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<template>
22
<form @submit.prevent="addTodo">
33
<!--all fields are required-->
4-
Name:<br />
4+
Name:<br /><!--name up to 255 characters-->
55
<input
66
class="todo-input"
77
id="name"
88
type="text"
99
placeholder="Enter task name"
10+
maxlength="255"
1011
v-model="task"
1112
required
1213
/><br />

0 commit comments

Comments
 (0)