Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Call on Each Keystroke in Phone Number Field #9980

Closed
i0am0arunava opened this issue Jan 15, 2025 · 1 comment
Closed

API Call on Each Keystroke in Phone Number Field #9980

i0am0arunava opened this issue Jan 15, 2025 · 1 comment

Comments

@i0am0arunava
Copy link
Contributor

Describe the bug
In the phone number field component, an API call is being made on every keystroke instead of waiting for the user to complete entering all 10 digits. Additionally, unnecessary re-renders are occurring during the input process.

To Reproduce
Steps to reproduce the b

  1. Go to dashboard ->choose any organisation->
  2. Go to patient search field , ph number
    3.search by number
  3. See error

Expected behavior
The API call should only be made after the user has entered all 10 digits in the phone number field and pressed a confirmation button (e.g., "Submit"). No unnecessary re-renders should occur during typing.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@AdityaJ2305
Copy link
Contributor

Duplicate of #9868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants