Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined is not an object" when tour has ended #123

Open
pke opened this issue Oct 27, 2022 · 2 comments
Open

"undefined is not an object" when tour has ended #123

pke opened this issue Oct 27, 2022 · 2 comments

Comments

@pke
Copy link

pke commented Oct 27, 2022

(this.props.currentStep!.tooltipBottomOffset || 0)

currentStep! is the culprit. It is undefined at that moment and should be better currentStep?.tooltipBottomOffset

The question is, why the code is executed after the tour has finished.

@Haseeba393
Copy link

This piece of code is running whenever you are changing your step, just it adds a condition here that if it is last step which the user has clicked then they are animating it down with opacity 1 to 0.

@Haseeba393
Copy link

I'm also encountering the same error when i'm clicking multiple times fast. Then it gives me the your mentioned error, I did the fix you have written here but on last step (fast clicking on steps) the modal opacity doesn't gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants