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

fix(autocomplete): fix not found template detection when element is hidden #7042

Closed

Conversation

devversion
Copy link
Member

When the element is hidden at compilation time through a ng-if or ng-repeat directive for example.
The stored variable as currently used will be trashed, so it will be undefined.

So there a possibilities to store that state, using a variable in the directive (ex. hashmaps with ids) or storing it as an attribute / class.

Fixes #7035 Fixes #7142

@topherfangio
Copy link
Contributor

Rerunning the build to see if we can merge this as the the build failure doesn't appear related to the code changes.

@topherfangio topherfangio self-assigned this Feb 10, 2016
@topherfangio topherfangio added the needs: review This PR is waiting on review from the team label Feb 10, 2016
@topherfangio topherfangio added this to the 1.0.6 milestone Feb 10, 2016
@devversion
Copy link
Member Author

Thanks @topherfangio!

Update: - Need to rebase this PR due the PhantomJS2 changes.

@topherfangio
Copy link
Contributor

@devversion Did you already do the rebase? It looks like the tests are passing again. If so, I'll make it as needs merge. Thanks!

@devversion
Copy link
Member Author

@topherfangio Yes, already rebased. Thanks for tracking 👍

@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: review This PR is waiting on review from the team labels Feb 10, 2016
@topherfangio
Copy link
Contributor

@ThomasBurleson LGTM, should be a simple non-breaking change.

…idden

When the element is hidden at compilation time through a ng-if directive for example.
The stored variable as currently used will be trashed, so it will be undefined.

So there a possibilities to store that state, using a variable in the directive (ex. hashmaps with ids) or storing it as an attribute / class.

Fixes angular#7035 Fixes angular#7142
@cleever
Copy link

cleever commented Feb 16, 2016

thanks @devversion.

@bluebirdtech
Copy link

thanks @devversion fixes it nicely for me

@ThomasBurleson
Copy link
Contributor

@devversion - 👍

ThomasBurleson pushed a commit that referenced this pull request Feb 26, 2016
…idden

When the element is hidden at compilation time through a ng-if directive for example.
The stored variable as currently used will be trashed, so it will be undefined.

So there a possibilities to store that state, using a variable in the directive (ex. hashmaps with ids) or storing it as an attribute / class.

Fixes #7035 Fixes #7142

  Closes #7042
@devversion devversion deleted the fix/autocomplete-has-notfound branch April 19, 2016 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants