Hi everyone!
When I tried to use the library, I got this error:
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined
at new Horizontal (powerange.js:1602)
at new module.exports (powerange.js:1268)
Where does this come from? I just copied one of the examples in the example file:
<script>
var stp = document.querySelector('.js-step');
var initStp = new Powerange(stp, { start: 50, step: 10 });
</script>
<div class="slider-wrapper">
<input type="text" class="js-step" />
</div>
Thank you very much!
Hi everyone!
When I tried to use the library, I got this error:
Uncaught TypeError: Cannot read property 'offsetWidth' of undefinedat new Horizontal (powerange.js:1602)at new module.exports (powerange.js:1268)Where does this come from? I just copied one of the examples in the example file:
Thank you very much!