Skip to content

Commit 01666da

Browse files
author
Brian Vaughn
committed
Better guard against minification/uglification in ColumnSizer when verifying child is either a Grid or a MultiGrid. (resolves bvaughn#558)
1 parent cbcc8cd commit 01666da

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
------------
33

4+
##### 8.11.4
5+
* 🐛 Better guard against minification/uglification in `ColumnSizer` when verifying child is either a `Grid` or a `MultiGrid`. (#558)
6+
47
##### 8.11.3
58
* Adding missing `scrollToRow` method to `List` and `Table` (as pass-thrus for `Grid.scrollToCell`).
69
* 🐛 Bugfixes with `MultiGrid` resize handling and caching. ([@codingbull](https://github.com/codingbull) - [#552](https://github.com/bvaughn/react-virtualized/pull/552))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React components for efficiently rendering large, scrollable lists and tabular data",
44
"author": "Brian Vaughn <[email protected]>",
55
"user": "bvaughn",
6-
"version": "8.11.3",
6+
"version": "8.11.4",
77
"next": "8.9.0",
88
"homepage": "https://github.com/bvaughn/react-virtualized",
99
"main": "dist/commonjs/index.js",

source/ColumnSizer/ColumnSizer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ export default class ColumnSizer extends Component {
9393
_registerChild (child) {
9494
if (
9595
child &&
96-
child.constructor &&
97-
child.constructor.name !== 'Grid' &&
98-
child.constructor.name !== 'MultiGrid'
96+
typeof child.recomputeGridSize !== 'function'
9997
) {
10098
throw Error('Unexpected child type registered; only Grid/MultiGrid children are supported.')
10199
}

0 commit comments

Comments
 (0)