-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: Only show country dropdown without autocomplete #5652
fix: Only show country dropdown without autocomplete #5652
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/nibnrl3rq |
Codecov Report
@@ Coverage Diff @@
## development #5652 +/- ##
===============================================
- Coverage 23.73% 23.57% -0.16%
===============================================
Files 509 510 +1
Lines 5415 5417 +2
Branches 59 59
===============================================
- Hits 1285 1277 -8
- Misses 4114 4124 +10
Partials 16 16
Continue to review full report at Codecov.
|
@iamareebjamal Please see the changes I have made. |
@@ -96,6 +97,10 @@ export default class UserPaymentInfoForm extends Component.extend(FormMixin) { | |||
return orderBy(countries, 'name'); | |||
} | |||
|
|||
get paymentCountries() { | |||
return orderBy(filter(countries, country => paymentCountries.includes(country.code)), 'name'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use js native filter
This does not solve the issue. Read the issue again |
@iamareebjamal the issue what I think is that while for eg searching for India they are lots of countries coming, so do I have to not show other unnecessary countries in drop down o and not change anything with no of countries that are already there in it. Bcz like for eg in wizard step 1 during choosing country there are only 44 countries in the dropdown but here there are 200+ so if we search India for eg here it will be showing more no. of countries bcz here in UiDropwdown we are using |
That's not the issue. Please read it again, carefully. See the linked PR and the PR I have mentioned there |
@iamareebjamal I understood the issue, pls clear me out do I have to turn |
The issue mentions in the title - only country And I have mentioned it in the linked PR as well |
@iamareebjamal Please see the changes made. |
Still getting autocomplete |
@iamareebjamal can u pls share the screenshot |
Fixes #5438
Short description of what this resolves:
The problem was that all the countries which are defined in demography were showing. Now showing only payment countries
Changes proposed in this pull request:
Before
After
Checklist
development
branch.