Ridermansb / vue-gmaps

Search places and address using Google Maps API
https://ridermansb.github.io/vue-gmaps
GNU Affero General Public License v3.0
117 stars 13 forks source link

Successive location searches #8

Open Rufio2031 opened 6 years ago

Rufio2031 commented 6 years ago

Start out by filling out or selecting a location from the Input.

Going back to the input and changing the value to an unfinished or invalid location, or clearing the input completely doesn't update the vm data and it remains the last selected location.

Is there anyway to clear or trigger a clear on this plugin? Anyway to validate the current value to make sure it has a lat and long with the currently entered value.

We're submitting the lat and long to an API, but if they clear their selection or submit an invalid location it's simply passing the last place that was selected instead of whatever is currently entered. Since you don't actually select a new location it doesn't update the Place at all.

mayankjx commented 1 year ago

can i try this for hacktoberfest2022? @Ridermansb

Ridermansb commented 1 year ago

Sure @mayankjx