From f530c8301c1fc50e060e9e1b85a7c29af3d57ec2 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Fri, 15 Nov 2019 18:09:05 +0300 Subject: [PATCH] Oops, sorry. Error message is bad here --- DynamicVirtualScroll.js | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DynamicVirtualScroll.js b/DynamicVirtualScroll.js index 62e2606..9b39982 100644 --- a/DynamicVirtualScroll.js +++ b/DynamicVirtualScroll.js @@ -61,9 +61,7 @@ export function virtualScrollDriver(props, oldState, getRenderedItemHeight) lastItemSize = getRenderedItemHeight(props.totalItems - 1 - lastVisibleItems); if (!lastItemSize) { - // Some required items in the end are missing, complain about it loudly, but don't break scrolling - // eslint-disable-next-line - console.error('dynamic-virtual-scroll: item #'+(props.totalItems - 1 - lastVisibleItems)+' is missing from render, please fix your code'); + // Some required items in the end are missing lastItemSize = 0; } lastItemsHeight += lastItemSize < props.minRowHeight ? props.minRowHeight : lastItemSize; diff --git a/package.json b/package.json index 1123d1b..d8428f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dynamic-virtual-scroll", - "version": "1.0.14", + "version": "1.0.15", "author": { "name": "Vitaliy Filippov", "email": "vitalif@yourcmc.ru",