Skip to content

Commit 086eb10

Browse files
Merge pull request #845 from buildo/844-tablo_never_pass_oncolumnresize
#844: Tablo: never pass onColumnResize down directly (closes #844)
2 parents 0e53f3f + c37f03f commit 086eb10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tablo/plugins/columnsResize/columnsResizeGrid.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ const propsTypes = {
1919
children: maybe(t.ReactChildren)
2020
};
2121

22-
const getLocals = (props) => {
23-
const { className, children, onColumnResize, ...gridProps } = props;
22+
const getLocals = ({ onColumnResize, ...props }) => {
2423

2524
// if `onColumnResize` is missing bypass this plugin
2625
if (!onColumnResize) {
2726
return props;
2827
}
2928

29+
const { className, children, ...gridProps } = props;
30+
3031
const onColumnResizeEndCallback = (width, key) => {
3132
onColumnResize({ width, key });
3233
};

0 commit comments

Comments
 (0)