Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete not initialising on route change. #293

Open
jpike88 opened this issue Feb 1, 2020 · 0 comments
Open

Autocomplete not initialising on route change. #293

jpike88 opened this issue Feb 1, 2020 · 0 comments

Comments

@jpike88
Copy link

jpike88 commented Feb 1, 2020

https://stackblitz.com/edit/ng-map-starter-dmk2kc

I have configured the autocomplete on each page to use the initialize$ hook, in order to set their default country scope (to Australia).

The first time load, you should see 'INITIALIZED!!!' in the console, it works so far. Press the letter F in the field, it should suggest Flinders Street Station (a popular Australian location).

Now go to page 2. This autocomplete does not call the intiialize hook, the console shows nothing, and it doesn't have a country scope anymore (pressing F has the first result as Frankfurt, Germany).

This renders the autocomplete field next to useless for multi-page uses. Am I doing something wrong here.

UPDATE

This breaks on your demo site!

Go to the places autocomplete page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant