Hello
I have installed the module and created the field Address into the user content.
I can see all the inpouts.
- I have changed the field presentation to: address autocomplete w Google Maps
- I have created the api places and maps.
- I have enabled
- I have inserted the api key into the settings.
Im getting this error when i load the form and the autocomplete doesnt appear:
placesApiAutocomplete.js?q8g247:61 Uncaught TypeError: Cannot convert undefined or null to object
at Function.values ()
at initiateAutocomplete (placesApiAutocomplete.js?q8g247:61)
at Object.success (placesApiAutocomplete.js?q8g247:22)
at c (jquery.min.js?v=3.4.1:2)
at Object.fireWith [as resolveWith] (jquery.min.js?v=3.4.1:2)
at l (jquery.min.js?v=3.4.1:2)
at HTMLScriptElement.i (jquery.min.js?v=3.4.1:2)
at HTMLScriptElement.dispatch (jquery.min.js?v=3.4.1:2)
at HTMLScriptElement.v.handle (jquery.min.js?v=3.4.1:2)
The error comes from this line:
// Resolve conflict when allowed countries is an object not an array
var allowedCountries = ($.isArray(drupalSettings.addressAutocomplete.availableCountries) ? drupalSettings.addressAutocomplete.availableCountries : Object.values(drupalSettings.addressAutocomplete.availableCountries));
Any help?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3125859-2.patch | 2.26 KB | drugan |
Comments
Comment #2
drugan commentedComment #4
drugan commentedPlease, feel free to reopen this issue if still experience that.