Skip to content

Commit

Permalink
♻️ Disable keyboardNavigation in joyride
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltomasik committed Aug 2, 2018
1 parent ef058fb commit 988fc6f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/onboarding/index.js
Expand Up @@ -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
Expand All @@ -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;
}
Expand All @@ -117,6 +112,7 @@ class Onboarding extends React.Component {
autoStart={true}
type='continuous'
holePadding={0}
keyboardNavigation={false}
/></div>;
}
}
Expand Down

0 comments on commit 988fc6f

Please sign in to comment.