-
Notifications
You must be signed in to change notification settings - Fork 49
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
createStep() has error: Cannot read property 'parent' of undefined #137
Comments
Hey @Watermelonqyu, I'll need a lot more information to help with this. When does this happen? When you start the tour/before you start the tour? Please provide as much info as you can. |
@benmarch Hi, thanks for quick reply. I just tried it yesterday and can not get the createStep to work. If you click start tour button in Plunker, and click next, you should notice the error. I am not sure if I called the function in a wrong way. |
Can you paste a link to your Plunker? |
@benmarch I did post in the ticket Plunker: https://plnkr.co/edit/OOn5EtQPmvO57e1vVsLG?p=preview |
@benmarch And I have another question, can we add 2 steps in the same element? I suppose we can not. But I am not sure. Thank you! |
I am hitting this one too |
It looks like the cause is that the element with the provided ID is not available when the step is shown (it's the only way to get to that line of code). I have added an exception that will let you know if this is the case. Please try again with 0.8.2. @Watermelonqyu, that's correct, you can only have one step per element when using directives. You can try attaching multiple detached steps to a single element, I haven't tried that. |
@benmarch Thank you! I was wondering if it is possible to generate the tour complete in the controller and NOT The html. We have some situations in responsive mode where depending on resolution the component may be display:hidden and we don't want tour items to activate on those but the alternative items that appear when in lower resolutions. Thanks kindly |
It is possible to do so in the controller layer by using |
Thank you very much for the updates! I will try again with 0.8.2 and let you know how it goes. |
@benmarch i am still getting this error. Basically i'm trying to do the entire tour through javascript and not in html as i'm using custom components and sometimes I need to use deeper locators than what is available in the current html template im using. Basically I am doing this:
I have a button initiating this
|
Same issue with detached tour
|
Ok after some playing around, I finally got it working Had to set appendToBody to true
|
Thank you for the post. I got it working after setting the appendToBody true in the uiTour. Here is the plunker: https://plnkr.co/edit/OOn5EtQPmvO57e1vVsLG?p=preview |
@Deklin it is best to use |
@benmarch Thanks Can I support this type of syntax w/ element id?
Basically in a jquery style filter this would be Find the first match, if no match, find the second, Your example seems to be very ID specific vs a jquery style filter hence the usage of element |
Hey @Deklin, sorry for the delayed response. I could open it up to any CSS selector, but you still wouldn't be able to use the Let's move this conversation over to #141. Is the original issue resolved as of 0.8.2? I can't tell from the comments if you are still seeing the original issue or if it evolved into a new one. |
I am using the exact versions of the following:
**I have installed this library via: downloaded package (NPM, Bower, or downloaded package)
I have observed the following behavior:
This is how I expected it to behave:
create new step
Here is my tour config, and all related step configs:
Additional notes/code:
plunker: https://plnkr.co/edit/OOn5EtQPmvO57e1vVsLG?p=preview
The text was updated successfully, but these errors were encountered: