5sControl / 5sControl/5s-frontend

fix bug messages about required fields don't appear at the same time

Aperta
#538 0 commenti 0 reazioni 1 assegnatario Rivendicata da @AlexGurski Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Сообщения об обязательности полей отображаются не одновременно при отправке пустой формы
**Environment:**
win 11
Chrome 114

**Precondition:**
пользователь авторизован
открыта форма редактирования компании на странице "Company"
форма редактирования компании пустая

**STR:**
1. Кликнуть по кнопке "Save"

**ER:**
Сообщения "Name field is required", "Email field is required" появляются одновременно

**AR:**
Сообщения "Name field is required" появляется при пустой форме или при заполнении поля почты, "Email field is required" появляется при заполненном поле "Name", под полем почты сообщение об ошибке "Name field is required"

**Attachments:**
https://drive.google.com/file/d/1zfgI7eKJHa01b0rAnZ4g2b8zQFrZQMMe/view?usp=drive_link

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Look at the company edit form on the 'Company' page, likely in a components directory. The validation logic for required fields (Name and Email) is triggering messages incorrectly. Check the form's validation state and error display logic. Run the app locally to reproduce the issue from the steps, then ensure both required messages appear simultaneously on form submission.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend, testing
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.