-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Skip a step if element in attachTo is not visible #1452
Comments
I came up with the following logic. It seems to be working, though I am not sure it covers all the use cases:
|
@yonkov that looks like a good implementation. You could probably use |
@chuckcarpenter we do need a sane default for when the element is not found. Right now, we do not show the step, but we do show the modal, so the user is stuck, which feels like a bug. |
@rwwagner90 not sure because what is that? Does the tour fail or do we go to the next step? Do we need to add a hook in to override that behavior as well? |
@chuckcarpenter we are discussing the issue here #1437 if you want to weigh in |
My tour got stuck when I attached an element that is hidden on mobile. For example, this could be a menu item from collapsed menu on mobile. I need a way to detect if element is hidden from the screen (opacity:0 or display: none, etc.) and if it is hidden, either detach the step from the element or skip the step. Is there a way to do it? I read about the
beforeShowPromise
but not sure how to implement it.The text was updated successfully, but these errors were encountered: