Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initAutoComplete() {
const $place = query(`.${this.classes.PLACE}`, this.$dropdown)
const that = this
this.PlaceComplete = new PlaceComplete($place, {
onPlaceChange(place) {
const lat = place.latitude
const lng = place.longitude
that.data.place = place.address
that.createMarker({ lat, lng })
}
})
}