material
material copied to clipboard
md-autocomplete : items not displayed after that the clear button has been clicked
To reproduce :
- Select an item from the list
- Click clear button
- Select "Louisiana" state (need to scroll in the list to reproduce)
- Clear again

+1 Seems like the options re-appear when you scroll.
+1 happens to me too when searchText is cleared programmatically.
If anyone is looking for a temporary fix:
$scope.$watch('vm.searchText', function (newValue, oldValue) {
if (newValue && oldValue === '') {
var ctrl = angular.element('md-virtual-repeat-container.md-autocomplete-suggestions-container')
.controller('mdVirtualRepeatContainer');
if (ctrl) {
$timeout(function () {
ctrl.resetScroll();
}, vm.debounceSearchText + 125);
}
}
});
Already fixed in HEAD.