This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Removing an item from md-autocomplete once selected #6674
Labels
P4: minor
Minor issues. May not be fixed without community contributions.
Milestone
I'm using
md-autocomplete
withinmd-chips
, as per the docs (using1.0.1
)It's working fine, but I'd like to update the autocomplete suggestions to omit things that have already been selected.
Here's my view (forgive the Jade!)
And some relevant JS, I'm using autocomplete on the
$scope.domains
array:I can see that after selecting a chip,
$scope.domains
is successfully updated. But when I try to type in the autocomplete - the suggestion is still there!This also completely breaks the autocomplete (suggestions only show for a few letters, then disappear as you type more even if they match).
Has anyone done this successfully? Is
md-autocomplete
caching the data model or something?The text was updated successfully, but these errors were encountered: