Skip to content

How to enable scrolling? #132

@HappySeaFox

Description

@HappySeaFox

Hi! Thanks for the great library! I use it with Bootstrap 5.3. I noticed scrolling doesn't change values. Is there a way to enable it?

<input type="number" value="100.0" data-decimals="1" min="0.1" max="1000.0" step="0.1"/>
    <script type="module">
      import { InputSpinner } from "./input-spinner.js"

      const inputSpinnerElements = document.querySelectorAll("input[type='number']")

      for (const inputSpinnerElement of inputSpinnerElements) {
          new InputSpinner(inputSpinnerElement)
      }
  </script>

If I disable the new InputSpinner(inputSpinnerElement) line to revert the input element back to normal HTML element, scrolling works fine and changes the current value.

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