Skip to content
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

Error when scrolling with no-wheel attribute on a number b-form-input #7124

Open
HarmvZ opened this issue Feb 14, 2023 · 0 comments · May be fixed by #7125
Open

Error when scrolling with no-wheel attribute on a number b-form-input #7124

HarmvZ opened this issue Feb 14, 2023 · 0 comments · May be fixed by #7125

Comments

@HarmvZ
Copy link

HarmvZ commented Feb 14, 2023

Describe the bug

Using the no-wheel attribute on a b-form-input component logs an error to the console when scrolling in the input. See the stale issue here: #6531

Steps to reproduce the bug

  1. Go to https://jsfiddle.net/7h6fk14u/3/
  2. Open your browser console.
  3. Click on the number input.
  4. Scroll
  5. See error in console:
    image

Link in error: https://chromestatus.com/feature/6662647093133312

Expected behavior

No error.

Versions

Libraries:

  • BootstrapVue: 2.23.0
  • Bootstrap: 4.6.1
  • Vue: 2.6.12 (also present in Vue 3)

Environment:

Demo link

https://jsfiddle.net/7h6fk14u/3/

Additional context

See https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#improving_scrolling_performance_with_passive_listeners. I suspect this can be fixed by explicitly passing the option passive: false here:

eventOn(document, 'wheel', this.stopWheel)

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

Successfully merging a pull request may close this issue.

1 participant