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 was archived by the owner on Sep 5, 2024. It is now read-only.
When using the autocomplete with md-chips there seems to be an issue with the number of displayed items...
Here is my code
HTML
<md-chips ng-model="template.validTimezones"
md-autocomplete-snap
md-require-match="true">
<md-autocomplete md-selected-item="timezoneSelection"
md-search-text="timezoneSearch"
md-items="timezone in template.getTimezones(timezoneSearch)"
md-item-text="timezone.id"
placeholder="Optional time zone(s)">
<span>{{ timezone.id }}</span>
<md-not-found>No time zones "{{ timezoneSearch }}" were found.</md-not-found>
</md-autocomplete>
<md-chip-template>
<span>{{ $chip.id }}</span>
</md-chip-template>
</md-chips>
and the timezone search function
var getTimezones = function (search) {
var regex = new RegExp(search, 'i'), results = [];
angular.forEach(self.timezoneList, function(timezone) {
if(regex.test(timezone.id)) {
results.push(timezone);
}
});
return results;
};
Screenshot of the output
However there are 4 results that should be showing, and the height of the container looks like it should be able to hold more like 5 entries.
I am not sure where the root cause is, perhaps with the virtual repeater that is trying to auto-size? But the ng-repeat inside the virtual container is only performing 3 repeats from the 4 entries, screenshot of the dom incase it helps...
Note: This is with 1.0.0-rc3
The text was updated successfully, but these errors were encountered:
When using the autocomplete with md-chips there seems to be an issue with the number of displayed items...
Here is my code
HTML
and the timezone search function
Screenshot of the output
However there are 4 results that should be showing, and the height of the container looks like it should be able to hold more like 5 entries.
I am not sure where the root cause is, perhaps with the virtual repeater that is trying to auto-size? But the ng-repeat inside the virtual container is only performing 3 repeats from the 4 entries, screenshot of the dom incase it helps...
Note: This is with 1.0.0-rc3
The text was updated successfully, but these errors were encountered: