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
is incorrect because viewportRect is destructured after the setState. React recent updates have changed the way setState is executed and state may be set immediately, thus causing didViewportChange to be false and the onVisibleCellsChange to not be invoked. Simply swapping the first two lines fixes the issue.
The text was updated successfully, but these errors were encountered:
Bug report
"@blueprintjs/core": "^1.35.0"
"@blueprintjs/table": "^1.31.0"
Chrome 63.0.3239.108
Ubuntu 17.10
Steps to reproduce
onVisibleCellsChange
on a table with fixed height and lots of rowsActual behavior
onVisibleCellsChange
is not called on scrollExpected behavior
onVisibleCellsChange
should be called on scrollFix
The issues lies in updateViewportRect method in
table.tsx
.Code below:
is incorrect because
viewportRect
is destructured after the setState. React recent updates have changed the way setState is executed and state may be set immediately, thus causingdidViewportChange
to be false and theonVisibleCellsChange
to not be invoked. Simply swapping the first two lines fixes the issue.The text was updated successfully, but these errors were encountered: