Skip to content

Commit

Permalink
fix(virtualized): fix regressions from #2761 (#3228)
Browse files Browse the repository at this point in the history
  • Loading branch information
redallen authored and kmcfaul committed Oct 29, 2019
1 parent 377ac47 commit 73ec92e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"clsx": "^1.0.1",
"dom-helpers": "^2.4.0 || ^3.0.0",
"exenv": "^1.2.2",
"linear-layout-vector": "0.0.1",
"react-lifecycles-compat": "^3.0.4",
"react-virtualized": "^9.21.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ class VirtualGrid extends React.PureComponent<Props, State> {
totalRowsHeight: number;
}) {
this._onScrollMemoizer({
callback: ( scrollLeft: number, scrollTop: number ) => {
callback: ( { scrollLeft, scrollTop }: { scrollLeft: number, scrollTop: number } ) => {
const { height, onScroll, width } = this.props;

onScroll({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export default class VirtualTableBody extends React.PureComponent<Props> {
style={{
tableLayout: 'fixed',
display: 'block',
...style
}}
containerStyle={{
display: 'block'
Expand Down

0 comments on commit 73ec92e

Please sign in to comment.