Im having issues with closing the tour. Clicking on the "Skip tour" leads to the next step... Why? Why it doesnt close the tooltip?
Sample:
const App = () => {
const steps = [];
return (
<div>
<div style={{ background: 'yellow' }} className={'a'}>
hey
</div>
<div style={{ background: 'green' }} className={'b'}>
hey
</div>
<div style={{ background: 'red' }} className={'c'}>
hey
</div>
<Joyride steps={steps} tooltipComponent={CustomTooltip} />
</div>
);
};
const CustomTooltip = ({
index,
size,
step,
closeProps,
primaryProps,
tooltipProps,
isLastStep,
}) => (
<div {...tooltipProps} style={{ background: 'blue', padding: '20px' }}>
<button {...closeProps}>Skip Tour</button>
<button {...primaryProps}>{isLastStep ? 'Close' : 'Next'}</button>
</div>
);
Playground: https://codesandbox.io/s/boring-carson-fmrfo?file=/src/index.tsx