Skip to content

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

@adammurin

Description

@adammurin
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions