Skip to content

Commit feaf4a2

Browse files
committed
Make the textarea a required field
1 parent 6484de6 commit feaf4a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/src/components/ContactForm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,12 @@ function ContactForm() {
106106
<label htmlFor="message" className="sr-only">
107107
Message
108108
</label>
109-
<textarea id="message" placeholder="Your Message"></textarea>
109+
<textarea
110+
id="message"
111+
name="message"
112+
placeholder="Your Message"
113+
required
114+
></textarea>
110115
</fieldset>
111116
<input type="hidden" name="form-name" value="main-contact" />
112117
<SubmitButton type="submit">Submit</SubmitButton>

0 commit comments

Comments
 (0)