mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-06-28 21:20:04 +00:00
try to fix #620
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user