From 988fc6fd461c3e3a11704dbd5b97a0ccbfd91348 Mon Sep 17 00:00:00 2001 From: michaeltomasik Date: Thu, 2 Aug 2018 10:26:04 +0200 Subject: [PATCH] :recycle: Disable keyboardNavigation in joyride --- src/components/onboarding/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/onboarding/index.js b/src/components/onboarding/index.js index e6ad85d3ae..469681580c 100644 --- a/src/components/onboarding/index.js +++ b/src/components/onboarding/index.js @@ -71,7 +71,6 @@ class Onboarding extends React.Component { const skipOnboarding = data.action === 'skip'; const lastStepReached = data.index === this.state.steps.length - 1; const onboardingFinished = data.type === 'finished'; - const onEscClick = data.type === 'beacon:before'; if (onboardingNotStarted) { this.joyride.next(); // skip to welcome step @@ -87,10 +86,6 @@ class Onboarding extends React.Component { this.setState({ skip: true }); this.joyride.reset(true); // go to step 0 to show the skip step } - if (onEscClick) { - this.joyride.reset(true); // go to step 0 to show the skip step - this.onboardingFinished = true; - } if (lastStepReached) { this.onboardingFinished = true; } @@ -117,6 +112,7 @@ class Onboarding extends React.Component { autoStart={true} type='continuous' holePadding={0} + keyboardNavigation={false} />; } }