danslo / danslo/CleanCheckoutAutocomplete

Google API only allows first 5 restrictions. Not using the selected country as a restriction.

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Google API only allows first 5 restrictions.

Now the code adds ALL countries from the country dropdown.
See https://github.com/danslo/CleanCheckoutAutocomplete/blob/master/src/view/frontend/web/js/view/autocomplete.js#L38 and https://github.com/danslo/CleanCheckoutAutocomplete/blob/master/src/view/frontend/web/js/view/autocomplete.js#L118

What would work better is to get the selected country first and then add the rest of the dropdown instead.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.