From 9d6f5c018069e0d55b8e1dab7d5223073d2ee966 Mon Sep 17 00:00:00 2001 From: Erik Ritter Date: Mon, 5 Aug 2019 08:52:58 -0700 Subject: [PATCH] feat: allow reactify callbacks to access props (#200) --- packages/superset-ui-chart/src/components/reactify.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/superset-ui-chart/src/components/reactify.tsx b/packages/superset-ui-chart/src/components/reactify.tsx index 96d7ae19f4..f01f720588 100644 --- a/packages/superset-ui-chart/src/components/reactify.tsx +++ b/packages/superset-ui-chart/src/components/reactify.tsx @@ -53,7 +53,7 @@ export default function reactify( componentWillUnmount() { this.container = undefined; if (callbacks && callbacks.componentWillUnmount) { - callbacks.componentWillUnmount(); + callbacks.componentWillUnmount.bind(this)(); } }