-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
InputNumber's changeOnWheel props ignored when type is number #48695
Comments
The InputNumber component is working properly, which should be an issue with the editor on the official website 🧐 |
I'm afraid that the issue has arisen in my local. |
https://stackblitz.com/edit/react-zbmzv8-ikvn43?file=demo.tsx Can you provide your example |
https://stackblitz.com/edit/react-zbmzv8-pxass1?file=demo.tsx I added type attribute. |
The problem is caused by type="number", removing the type is normal. I will explain this issue in the document later 🧐 |
https://stackblitz.com/edit/react-zbmzv8-4pcc6d?file=demo.tsx Even just |
Vanilla input adds |
Reproduction link
https://ant.design/components/input-number#input-number-demo-change-on-wheel
Steps to reproduce
try the code below.
What is expected?
A wheel action should be ignored when type is number and changeOnWheel is false.
What is actually happening?
A wheel action is still applied when type is number.
The text was updated successfully, but these errors were encountered: