fix Table onExpand

This commit is contained in:
briefy 2017-04-04 18:52:24 +08:00
parent 493172c07d
commit b05ee0c1c0
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class Table extends Component{
this.props.onExpandedRowsChange(expandedRowKeys); this.props.onExpandedRowsChange(expandedRowKeys);
} }
onExpanded(expanded, record, e, index) { onExpanded(expanded, record, index,e ) {
if (e) { if (e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();

View File

@ -83,7 +83,7 @@ class TableRow extends Component{
onExpand, onExpand,
} = this.props; } = this.props;
if (expandable && expandRowByClick) { if (expandable && expandRowByClick) {
onExpand(!expanded, record, index); onExpand(!expanded, record, index,event);
} }
onRowClick(record, index, event); onRowClick(record, index, event);
} }