mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
try to fix #620
This commit is contained in:
parent
a4c1090a0f
commit
bc0c048735
@ -15,13 +15,12 @@ class BootstrapTable extends PropsBaseResolver(Component) {
|
||||
super(props);
|
||||
this.validateProps();
|
||||
if (props.registerExposedAPI) {
|
||||
const getData = () => this.getData();
|
||||
props.registerExposedAPI(getData);
|
||||
props.registerExposedAPI(this.getData);
|
||||
}
|
||||
}
|
||||
|
||||
// Exposed APIs
|
||||
getData = () => {
|
||||
getData() {
|
||||
return this.props.data;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user