codersforcauses / codersforcauses/p2s-v2
[BUG] Student Form Contact Validation
- Dominant language
- Vue
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Problem**
When filling out the student creation or edit form the contact section includes input duplication for Home and Emergency contact. This functionality is currently broken due to a change in implementation but the previously working component can be found [here](https://github.com/codersforcauses/p2s-v2/blob/d10a79649f73d773634d2123fa7dfecba3a090f7/app/src/components/Student/CreateStudent.vue#L575-L593). This code does not successfully validate and in order to complete the form "Use Same Contact" must be turned off and the value reentered into the emergency fields.
**Where/When**
[StudentDialog.vue](https://github.com/codersforcauses/p2s-v2/blob/d10a79649f73d773634d2123fa7dfecba3a090f7/app/src/components/Student/StudentDialog/index.vue)
When filling out the Contact section of the form.
**Desired behavior**
- "Use Same Contact" functionality should be restored to the StudentDialog component
- The "required" validation of the emergency contact fields should be satisfied when duplicated from the home section.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.