Skip to content

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

@PascalBrouwers

Description

@PascalBrouwers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions