Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
feat: allow reactify callbacks to access props (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter committed Aug 5, 2019
1 parent 32c8ffd commit 9d6f5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/superset-ui-chart/src/components/reactify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function reactify<Props extends object>(
componentWillUnmount() {
this.container = undefined;
if (callbacks && callbacks.componentWillUnmount) {
callbacks.componentWillUnmount();
callbacks.componentWillUnmount.bind(this)();
}
}

Expand Down

0 comments on commit 9d6f5c0

Please sign in to comment.