components icon indicating copy to clipboard operation
components copied to clipboard

Changing the autocomplete on a trigger does not change the overlay (options)

Open thomaspink opened this issue 8 years ago • 5 comments

Bug, feature request, or proposal:

Changing the autocomplete on a trigger does not change the options in the overlay.

What is the expected behavior?

When changing the autocomplete (dtAutocomplete input) on a trigger, the overlay should display the new options.

What is the current behavior?

When changing the autocomplete (dtAutocomplete input) on a trigger, the overlay options are still the initial ones.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-7djgzt?file=app%2Fautocomplete-simple-example.html

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Current

thomaspink avatar Oct 25 '18 14:10 thomaspink

You could simply switch between the lists.

https://stackblitz.com/edit/angular-7djgzt-bzagsq

manklu avatar Oct 25 '18 16:10 manklu

Yes i know, but this does not show the issue. This also only works if the options of the 2 array have the same form.

thomaspink avatar Oct 25 '18 16:10 thomaspink

Still no problem.

https://stackblitz.com/edit/angular-7djgzt-fr6q4s https://stackblitz.com/edit/angular-7djgzt-x5l31h

manklu avatar Oct 25 '18 21:10 manklu

This example is there to show the issue of not updating the template/portal when changing the autocomplete panel. Workarounds/other solutions of course work but do not solve this issue.

thomaspink avatar Oct 25 '18 21:10 thomaspink

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.