From 7432db78481784e4a61a7a31f521b0977e49eeab Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Thu, 23 Mar 2017 22:37:14 -0400 Subject: [PATCH] Attach intro to id-container, not document.body (re: #3925) --- modules/ui/help.js | 2 +- modules/ui/splash.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/help.js b/modules/ui/help.js index 61feb834c..9690af5d0 100644 --- a/modules/ui/help.js +++ b/modules/ui/help.js @@ -129,7 +129,7 @@ export function uiHelp(context) { function clickWalkthrough() { - d3.select(document.body).call(uiIntro(context)); + context.container().call(uiIntro(context)); setVisible(false); } diff --git a/modules/ui/splash.js b/modules/ui/splash.js index 8703c15c7..e68a5f7fd 100644 --- a/modules/ui/splash.js +++ b/modules/ui/splash.js @@ -44,7 +44,7 @@ export function uiSplash(context) { .append('button') .attr('class', 'walkthrough col6') .on('click', function() { - d3.select(document.body).call(uiIntro(context)); + context.container().call(uiIntro(context)); modalSelection.close(); });