From d90106e47264d6d77d4b96cfa8681dc88d70b784 Mon Sep 17 00:00:00 2001 From: Corey Robertson Date: Wed, 15 Apr 2020 13:08:48 -0400 Subject: [PATCH] Fixes Keyboard Shortcuts help extension (#63583) (#63610) --- x-pack/legacy/plugins/canvas/public/application.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/canvas/public/application.tsx b/x-pack/legacy/plugins/canvas/public/application.tsx index 79b3918fef99be..f75b3b427c41b5 100644 --- a/x-pack/legacy/plugins/canvas/public/application.tsx +++ b/x-pack/legacy/plugins/canvas/public/application.tsx @@ -104,8 +104,9 @@ export const initializeCanvas = async ( href: getDocumentationLinks().canvas, }, ], - content: domNode => () => { + content: domNode => { ReactDOM.render(, domNode); + return () => ReactDOM.unmountComponentAtNode(domNode); }, });