jgvargas / 2022-Cohort-Projects

Collection of cohort projects from the freeCodeCamp cohorts
1 stars 1 forks source link

Form will not accept "required" on input field #25

Closed jgvargas closed 2 years ago

jgvargas commented 2 years ago

In add-idea.html line 51, the event-name property should be required but not working consistently.

Adding two Submit buttons with type="submit" works (Not valid solution). Also seems some Javascript may be interfering. Project.js line 33 has event.preventDefault() which may also be the source of trouble.

Ideal working behavior would be the input field "event-name" must be filled before form submission. Page reload on/off doesn't matter.