Closed jerfeson closed 5 years ago
on line 95 put this condition
if(floatingElementQuery != null){ ... }
this solved my problem, but I do not know if it's the correct way to do it, and it does not show the tooltip if the value is coming null
@jerfeson So you'd like to totally skip steps if the element isn't on the page? or would you like to use a 'floating' tooltip if the element isn't found?
I have a PHP validation, which checks whether a parameter is marked or not and displays an input screen, input that uses the introjs, and even with the id not being presented in the code it shows ma top of the balloon, the change I made the library so that if this element does not exist on the screen that he jumped paso introduction.
I think defining the tour via data-*
attributes should take care of this for you. If you really wanted to make a change in intro.js I think this would be the right way to do it.
this could not be applied as a solution. in my application inputs are generated dynamically change the framework would be unnecessary work
I put the condition that partially solved my problem if(floatingElementQuery != null) {...}
how to not show tooltip, if not find the id?