xkjyeah / vue-google-maps

Google maps component for vue with 2-way data binding
https://xkjyeah.github.io/vue-google-maps/
1.88k stars 474 forks source link

custom text field via scoped slot of Autocomplete does not working #718

Open ttlg opened 4 years ago

ttlg commented 4 years ago

I tried to use custom text field by exactly same way as it is mentioned at README like below. But it does not change at all. Also it output no errors. Does anyone know the reason? Or do you success to change text field via scoped slot?

          <gmap-autocomplete class="introInput" >
                    <template v-slot:input="slotProps">
                        <v-text-field outlined
                                      prepend-inner-icon="place"
                                      placeholder="Location Of Event"
                                      ref="input"
                                      v-on:listeners="slotProps.listeners"
                                      v-on:attrs="slotProps.attrs">
                        </v-text-field>
                    </template>
        </gmap-autocomplete>

The versions:

davydnorris commented 4 years ago

The current npm package still doesn't include the additional code to enable scoped slots. Hopefully some time soon @xkjyeah will push an update

josegus commented 4 years ago

I'm more concerned by this deprecation notice image

davydnorris commented 4 years ago

@diegoazh has very kindly forked this repo and has started to maintain this library, as well as releasing an updated npm package where this issue is now fixed, as well as flagging the deprecations above for work.

See https://github.com/diegoazh/gmap-vue

josegus commented 4 years ago

@diegoazh has very kindly forked this repo and has started to maintain this library, as well as releasing an updated npm package where this issue is now fixed, as well as flagging the deprecations above for work.

See https://github.com/diegoazh/gmap-vue

I've migrated to his repo a few minutes ago, but the deprecation notice still exists. Are you sure this is fixed?

davydnorris commented 4 years ago

If you have a look, there's an Issue logged just recently so it's in the pipeline to be fixed - it's a simple fix and the grace period is until November this year

ttlg commented 4 years ago

I confirmed I can use v-slot:input by using https://github.com/diegoazh/gmap-vue. Thank you very much for your help.