Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

fix(autocomplete): clear search text if select item cleared. #9087

Closed

Conversation

devversion
Copy link
Member

  • Currently the autocomplete always updates the searchText according the changed selectedItem.
  • When the selectedItem was manually cleared, the searchText will be not updated.
  • The searchText should be cleared, when the selectedItem was cleared and the searchText still matches the selectedItem

@ThomasBurleson This is the planned re-introduction, which fixes the noticed issues and also includes a test, which makes sure, that this won't happen again.

Fixes #8788.

* Currently the autocomplete always updates the searchText according the changed selectedItem.
* When the selectedItem was manually cleared, the searchText will be not updated.
* The `searchText` should be cleared, when the `selectedItem` was cleared and the searchText still matches the selectedItem

Fixes angular#8788.
@devversion devversion added the needs: review This PR is waiting on review from the team label Jul 20, 2016
@devversion devversion deleted the fix/clear-search-text-on-change branch July 24, 2016 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdAutocomplete - Problem when md-selected-item become null
2 participants