You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
In my example (https://jsfiddle.net/vv18yjzo/7/) the autocomplete suggestions should be shown, as long as the md-chips input is focused. This works well when I enter a few items. However, when all available items are added and then removed, the autocomplete suggestions are empty / hidden. I have to enter a new search text to see the autocomplete suggestions again.
What is the expected behavior?
The md-autocomplete suggestions should be shown when no items are selected (= the chips input is empty) and the md-chips input is focused.
I narrowed my problem down to the value of searchText. If an item gets removed and searchText is an empty string, you can simple set searchText equal to null. Afterwards, vm.searchCategories() in md-items="item in vm.searchCategories()"of the md-autocomplete directive gets called:
Actual behavior:
In my example (https://jsfiddle.net/vv18yjzo/7/) the autocomplete suggestions should be shown, as long as the md-chips input is focused. This works well when I enter a few items. However, when all available items are added and then removed, the autocomplete suggestions are empty / hidden. I have to enter a new search text to see the autocomplete suggestions again.
The md-autocomplete suggestions should be shown when no items are selected (= the chips input is empty) and the md-chips input is focused.
CodePen or Steps to reproduce the issue: *
Angular Versions: *
Additional Information:
The text was updated successfully, but these errors were encountered: