Skip to content

How to enable scrolling? #132

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

Open
HappySeaFox opened this issue Apr 4, 2025 · 0 comments
Open

How to enable scrolling? #132

HappySeaFox opened this issue Apr 4, 2025 · 0 comments

Comments

@HappySeaFox
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant