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

Bug: Searching 'India' in country selection is not working as expected #11290

Open
Tanuj1718 opened this issue Mar 14, 2025 · 5 comments
Open
Labels
needs-triage question Further information is requested

Comments

@Tanuj1718
Copy link
Contributor

Describe the bug
When we search for India in country selection , it is not working as expected. It is working fine for others.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://care.ohc.network/users/careadmin
  2. Click on Edit user
  3. Try to search for India in country selection
  4. See error

Expected behavior
When we search for India, it should appear at first.

Screenshots

Screen.Recording.2025-03-14.at.8.42.07.AM.mov

🚨 DO NOT EDIT BELOW THIS LINE 🚨

Instructions for Requesting Assignment:

To request assignment, please clearly outline your solution and timeline by commenting on the issue using the format below:

Describe your solution clearly:
Provide a detailed explanation of your proposed solution, including your approach, key implementation steps, and relevant examples or references. Mention any dependencies, assumptions, or risks you foresee that might affect your timeline or implementation.

Expected Timeline:

  • End date: [Expected submission date of a completed Pull Request]

Additional Context:
Include any other relevant context, links, screenshots, or resources that support your proposed solution.

🚨 Your assignment may be unassigned if there is no activity or progress within the stated timeline unless communicated clearly and agreed upon.

@Tanuj1718
Copy link
Contributor Author

Tanuj1718 commented Mar 14, 2025

@rithviknishad @Jacobjeevan I would like to work on it, if it is valid
ETA: 16 March

@rithviknishad
Copy link
Member

rithviknishad commented Mar 14, 2025

Please describe the root cause of the issue and how you are planning to solve this? The ETA should be said based on that!

@Tanuj1718
Copy link
Contributor Author

Tanuj1718 commented Mar 14, 2025

Please describe the root cause of the issue and how you are planning to solve this? The ETA should be said based on that!

It is due to the return type of Flag Component. In it we are passing country name which contains all the countries. So when we are rendering flag component and giving it title as countryName , it is showing this behaviour. Since it is necessary to give the title to the component, we can give it country code as a title. It is working fine when we are passing country code as title.🤔 Still trying to find why this is happening.

EDIT: Root cause is scrolling. Scroller moves at the last of the list.

Screen.Recording.2025-03-14.at.1.32.19.PM.mov

@github-actions github-actions bot added needs-triage question Further information is requested labels Mar 14, 2025
@Tanuj1718
Copy link
Contributor Author

@rithviknishad Can i get it assigned as I have solved it.
I have used useRef for scroll area and tracking input changes. So whenever input changes scroller moves to the top.

Screen.Recording.2025-03-14.at.6.44.40.PM.mov

@rithviknishad
Copy link
Member

rithviknishad commented Mar 14, 2025

that's just fixing some side effect of some other problem. the root cause is not solved yet.

why does it scroll to the bottom in the first place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants