digitalfabrik / entitlementcard

App for 'Digitale Berechtigungskarten', generally benefit card for volunteers or socially vulnerable groups in Germany. App for Android & iOS + Backend + Administration Web Portal – 100% Open Source.
MIT License
36 stars 3 forks source link

Validation error when entering the date of birth from the keyboard on the self-service portal #1795

Open seluianova opened 2 days ago

seluianova commented 2 days ago

Describe the bug Cannot create a card if the birthday is entered from the keyboard because of the validation error even if the date is valid

To Reproduce Steps to reproduce the behavior:

  1. Open http://localhost:3000/erstellen
  2. Enter valid birthday using the keyboard --> field validation error is displayed

UPD. It seems that if the date is selected using the calendar, it is also not possible to submit the form, but in this case the validation error only occurs after clicking the 'KoblenzPass erstellen' button

Expected behavior If the entered date is valid, it should be accepted

Screenshots image

Desktop (please complete the following information): Reproduced in Desktop and Mobile Chrome browsers

Additional context Add any other context about the problem here.

f1sh1918 commented 1 day ago

@seluianova I can not reproduce this on chrome (recent main)

https://github.com/user-attachments/assets/95f3a868-0ada-495e-a819-0f28e2e0ea0c

https://github.com/user-attachments/assets/279347c4-dcab-4d1e-81df-e4703e77cf77

seluianova commented 1 day ago

I’ve just double checked and it is still reproduced for me (recent main). I think we could take a look at it at the conference

f1sh1918 commented 1 day ago

alright no clue if thats browser dependent on mac/linux (i have recent chrome update) I tested that on chrome, firefox and safari, no issues Maybe someone running on linux machine can try to reproduce

f1sh1918 commented 1 day ago

did you run npm i on root folder? Is there any additional error message?

seluianova commented 1 day ago

did you run npm i on root folder?

I think so but I will do again at the conference, already packing my stuff

Is there any additional error message?

No, it looks like on the screenshot I posted

steffenkleinle commented 13 hours ago

I can also reproduce this issue :/ It is due to locale settings on the device :) Will open a PR.