From b05ee0c1c0de7a51b22276c89a7882b6f36259b9 Mon Sep 17 00:00:00 2001 From: briefy Date: Tue, 4 Apr 2017 18:52:24 +0800 Subject: [PATCH] fix Table onExpand --- src/Table.js | 2 +- src/TableRow.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Table.js b/src/Table.js index 0d6be5a..a0802f2 100644 --- a/src/Table.js +++ b/src/Table.js @@ -168,7 +168,7 @@ class Table extends Component{ this.props.onExpandedRowsChange(expandedRowKeys); } - onExpanded(expanded, record, e, index) { + onExpanded(expanded, record, index,e ) { if (e) { e.preventDefault(); e.stopPropagation(); diff --git a/src/TableRow.js b/src/TableRow.js index 13f9da6..b836262 100644 --- a/src/TableRow.js +++ b/src/TableRow.js @@ -83,7 +83,7 @@ class TableRow extends Component{ onExpand, } = this.props; if (expandable && expandRowByClick) { - onExpand(!expanded, record, index); + onExpand(!expanded, record, index,event); } onRowClick(record, index, event); }