Skip to content

Uncaught TypeError: Cannot read property 'offsetWidth' of undefined #28

Description

@TomFevrier

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions