salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.64k stars 393 forks source link

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

Open drewcoparker opened 3 weeks ago

drewcoparker commented 3 weeks ago

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>
  2. Make sure both show-address-lookup and show-compact-address attributes are used.
  3. Observe that the rendered output shows "undefined" in the address input.
  4. Remove show-compact-address attribute and "undefined" is not displayed in the address bar.
wjhsf commented 3 weeks ago

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.