Not sure why this is the case but all the fields of the PlaceChangeMapEvent are undefined if that event happens. I would expect to get at least the Autocomplete from getSource() of the event.
final Autocomplete autoComplete = Autocomplete.newInstance(element, options);
autoComplete.addPlaceChangeHandler(new PlaceChangeMapHandler() {
@Override
public void onEvent(PlaceChangeMapEvent event) {
}
}
Not sure why this is the case but all the fields of the
PlaceChangeMapEvent
are undefined if that event happens. I would expect to get at least theAutocomplete
fromgetSource()
of the event.