mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
amend(collectionRepeat): don't render an extra item at the end
Closes #2027
This commit is contained in:
@@ -81,7 +81,7 @@ function($cacheFactory, $parse, $rootScope) {
|
||||
attachItemAtIndex: function(index) {
|
||||
if (index < this.dataStartIndex) {
|
||||
return this.beforeSiblings[index];
|
||||
} else if (index > this.data.length) {
|
||||
} else if (index > this.data.length - 1) {
|
||||
return this.afterSiblings[index - this.data.length - this.dataStartIndex];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user