fix Table onExpand
This commit is contained in:
parent
493172c07d
commit
b05ee0c1c0
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue