Przeglądaj źródła

bug fixed in add feature

robert2206 8 lat temu
rodzic
commit
73225e43ca
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      src/base/base-list-view.ts

+ 1 - 4
src/base/base-list-view.ts

@@ -373,10 +373,7 @@ export abstract class BaseListView<T> extends BaseView<T>{
      */
     add(item: T): void {
         this.items.unshift(item);
-
-        if (this.getItemsShown().length < this.getEndRange()) {
-            this.itemsShown.unshift(item);
-        }
+        this.itemsShown.unshift(item);
     }
 
     /**