ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
255 stars 441 forks source link

Year Of Birth Field Validation Condition in Patient transfer form is not working as expected #9132

Closed nihal467 closed 2 days ago

nihal467 commented 6 days ago

Describe the bug

The "Year of Birth" field in the Patient Transfer form triggers an error check with each user input. This behavior is not aligned with the expected workflow.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to the Patient tab.
  2. Click on Add Patient.
  3. Enter +919999999999 in the Phone Number field.
  4. In the transfer pop-up that appears, click the green button.
  5. In the next pop-up, enter the Year of Birth.
  6. Observe the validation error triggered with each keystroke.

Expected behavior

Validation should only occur when the input field is out of focus or after the user has completed their entry.

Screenshots

Image

Muppasanipraneeth commented 6 days ago

can i work on this

AdityaJ2305 commented 6 days ago

Hey @Muppasanipraneeth, apologies for missing your comment earlier. I’ve already started working on this issue and pushed a PR for it. Feel free to take up another one. Thanks!