-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Uncaught TypeError: Cannot read property 'classList' of null #151
Comments
I think you can close this issue. |
Hi @DanielCMorales, It seems related on how you're using |
Hi there Johann-S. I´m facing the same problem here. I´m working under WP framework. Here is my code: HTML + PHP:
1
JQUERY Thanks in advance! |
Something was wrong formatting the code. I attach the complete |
same here tried make a function attached to the window and call it from my view like: import Stepper from 'bs-stepper';
window.startStepper = el => {
return new Stepper(el);
}; and in my view: <script>
startStepper(document.querySelector('.bs-stepper'));
</script> but that don't work too. Edit: i read the documentation and inspected the examples html, so, just to be clear, when i tried use this plugin, i just copied the HTML from the README, but in your examples all the items have the "active" class in the first content item, so i tried put it in my stepper and the error gone, but the stepper buttons keep gray and clickable. |
This error means you pass something I would love to see a live demo of the problem, please create a reduced test case via CodePen/JS Bin or Stackblitz and report back with your link. Without that, I can't confirmed it's related to the libs, and it seems related to how you're using |
I'll try this later, maybe not today as i have a lot of work here to do. |
I'm still waiting for your live demo of the problem on CodePen/JS Bin or Stackblitz. |
@Johann-S here is the link to a pen I made: https://codepen.io/kingraphaii/pen/mdPeNRP |
the selector cannot find a html object with please recheck the html where you load the script is it contain a html object with |
Is there any update on this issue? I am still getting the same issue. I tried to implement it on a |
I got the error as long as the bs-stepper-content didn't have all data-targets from the bs-stepper-header as a div id So you need a div with a corresponding ID for exactly every data target. |
same problem and this solution worked. Thanks. |
Thanks for your plugin.
I don't use bs-stepper with cdn link. I downloaded the files and saved it in my foolder. But I saw an error in the console web. I tried to using jQuery and JS Vanilla, comment that line code, but it doesn't fix. I haven't modified anything more.
The text was updated successfully, but these errors were encountered: