vue-google-autocomplete icon indicating copy to clipboard operation
vue-google-autocomplete copied to clipboard

Props fields doesn't work version 1.1.1

Open StefanosGiannakis opened this issue 3 years ago • 3 comments

Hey. Thanks for your work and your time. When I am trying to pass this new prop :fileds="myFields" to the component the placechanged event doesn't get triggered.

 `<vue-google-autocomplete
                id="map"
                ref="address"
                classname="form-control form-control-lg input-group"
                :placeholder="$t('ad_form.address_placeholder')"
                v-on:placechanged="getAddressData"
                country="gr"
                types="geocode"
		:fields="apiFieldsToGet"
		v-on:error="handleError"
            />`

StefanosGiannakis avatar Mar 15 '21 17:03 StefanosGiannakis

I fixed this issue by adding fields "geometry" and "address_components" which are required

3bandiste avatar Mar 15 '21 19:03 3bandiste

I fixed this issue by adding fields "geometry" and "address_components" which are required

yes. this fixes this problem 👍

StefanosGiannakis avatar Mar 16 '21 08:03 StefanosGiannakis

Hello,

i have the same type of problem,

i use vee-validate 2 which define a global fields computed property, so i'm unable to use this prop directly, since they are named exactly the same.

vue.esm.js?a026:629 [Vue warn]: The computed property "fields" is already defined as a prop.

i needed to rename the vee validate fields computed property to something else

lk77 avatar Mar 23 '21 15:03 lk77