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

BAH-2994 - fix the dropdown select issue on IOS devices #104

Merged
merged 3 commits into from Mar 20, 2024

Conversation

ayush34957
Copy link
Contributor

@ayush34957 ayush34957 commented Mar 20, 2024

The issue is that in IOS devices the onChange handler is not getting invoked after selecting a value from the dropdown menu. Further analysis showed that it is happening due to another library called "fastclick" in openmrs-bahmniapps repo. The "fastclick" library causing this issue with react-select in IOS devices can be found in the below link.
JedWatson/react-select#2891

Fix:
The "fastclick" library provides a way to ignore its effect on a certain element by adding classname "needsclick" to that element. This can be found on their official npm page.
https://www.npmjs.com/package/fastclick
JedWatson/react-select#1036

Copy link

@gsluthra gsluthra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ayush34957 ayush34957 merged commit fe0e1bc into master Mar 20, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants