salesforce/lwc

"Undefined" shows in address input of lwc input-address when show-address-lookup is combined with show-compact-address

Opened this issue · 1 comments

Description

image

Steps to Reproduce

  1. Use this simple example copied from the lwc input-address documentation:
<lightning-input-address
    show-address-lookup
    show-compact-address
    address-label="Address"
    street-label="Street"
    city-label="City"
    country-label="Country"
    province-label="State"
    postal-code-label="PostalCode"
    street="1 Market St."
    city="San Francisco"
    country="US"
    province="CA"
    postal-code="94105"
    field-level-help="Enter your billing address"
>
</lightning-input-address>
  1. Make sure both show-address-lookup and show-compact-address attributes are used.
  2. Observe that the rendered output shows "undefined" in the address input.
  3. Remove show-compact-address attribute and "undefined" is not displayed in the address bar.

This is an issue with a Lightning Component, not the LWC framework (this repo). To resolve your issue, I would recommend opening a Salesforce Stack Exchange question or a Salesforce case.