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

The event passed as a parameter is not a valid wheel event, 'wheel' given. #31

Open
marinastavares opened this issue Jul 17, 2020 · 3 comments

Comments

@marinastavares
Copy link

This is a problem related to the autonumeric version of the lib

@pedro-lb
Copy link

Also having this problem! Seems to happen randomly when typing really fast.

@rafaelkillua
Copy link

rafaelkillua commented Sep 23, 2020

I just had this problem. In my case, it happens when the component is mounted (onWheel callback is called, then this error occurs). My workaround was to set a custom onWheel to a noop function. Something like:

const noop = () => {}

<CurrencyTextField
    ...
    onWheel={noop}
>

Well, it seemed to work.

@SpencerBlum
Copy link

SpencerBlum commented Oct 20, 2020

A quick fix that I was able to do was to use the Docs from http://autonumeric.org/guide where this component stems from and turn off the wheel functionality altogether.

<CurrencyTextField modifyValueOnWheel={false} />

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

4 participants