Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

docs(autocomplete): common issue inside of virtual repeat #9842

Merged

Conversation

devversion
Copy link
Member

Developers might have an autocomplete inside of a VirtualRepeat container and will wonder why the autocomplete's dropdown items are not updating.

This is because the VirtualRepeat only updates the scope bindings (rather than re-creating the autocomplete) and the autocomplete displays the previously cached results.

Closes #9815.

@devversion devversion added type: docs needs: review This PR is waiting on review from the team labels Oct 16, 2016
* Developers might have an autocomplete component inside of a VirtualRepeat container and will wonder why the autocompletes dropdown items are not updating.

* This is because the VirtualRepeat only updates the scope bindings (rather than re-creating the autocomplete - Recycler View) and the autocomplete previously cached the results and now displays the old ones.

Closes angular#9815.
@devversion devversion force-pushed the docs/autocomplete-virtual-repeat branch from 82b80ee to 6431335 Compare October 16, 2016 19:08
@ThomasBurleson ThomasBurleson removed the needs: review This PR is waiting on review from the team label Oct 16, 2016
@ThomasBurleson
Copy link
Contributor

@devversion - nice!

@ThomasBurleson ThomasBurleson merged commit 3ab002f into angular:master Oct 16, 2016
@devversion devversion deleted the docs/autocomplete-virtual-repeat branch October 16, 2016 19:29
@brodecap
Copy link

brodecap commented Oct 17, 2016

Unfortunately, this did not resolve the issue. Please re-open and investigate further. The CodePen has been updated with md-no-cache="true" which appears to have no impact.

http://codepen.io/anon/pen/rrkqNy

Please let me know if I can provide any further information.

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

Successfully merging this pull request may close these issues.

3 participants