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

Two dropdowns with results appear when using [types] and [country] properties on the input, HTTP request is sent twice #336

Open
1 of 2 tasks
adammurin opened this issue Jul 17, 2024 · 0 comments

Comments

@adammurin
Copy link

  • bug report -> please search issues before submitting
  • feature request

OS and Version?

macOS 14.5

Versions

Node: 20.11.1
NPM: 10.2.4
Angular: 16

Repro steps

This is the HTML of the input that I use:
<input *ngIf="!user" #addressPickupElement matGoogleMapsAutocomplete type="address" (onAutocompleteSelected)="handleAddressChange($event)" [(ngModel)]="cart.address" (ngModelChange)="inputChanged($event)" placeholder="Zadajte adresu vyzdvihnutia" class="form-input" name="temp-address-input-field" [types]="['address']" [country]="['sk']" >

As you start typing the address in the input, you can notice two HTTP requests are sent for each character typed. After you write cca 6th character (depends on particualar address), you can see two dropdowns - one containing results with applied filters (types=address and country=sk), another one just below without applied filters
Screenshot 2024-07-17 at 10 04 37

The log given by the failure

No error in console nor during compiling

Desired functionality

I want to filter the autocomplete results by types and country, and see only one dropdown with the filtered results.

Mention any other details that might be useful

Thanks!

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

No branches or pull requests

1 participant