[Bug]: NumberInput Steppers dont pass value to onChange #14807
Labels
adopter: strategic-product
Work-stream that directly effects the Product-led Growth initiative.
status: needs triage 🕵️♀️
status: waiting for maintainer response 💬
type: bug 🐛
Package
@carbon/react
Browser
Chrome
Package version
1.39.0
React version
18.2.0
Description
NumberInput steppers don't pass the value to the onChange handler.
The above code works correctly when a value is typed into the field, but if the steppers are used then e.target.value is never set because e.target is the SVG icon.
This used to work in Carbon 10, but we recently upgraded to 11 and so now being affected by this bug.
Reproduction/example
https://codesandbox.io/s/cool-darkness-z6lv6n?file=/index.js
Steps to reproduce
Use the steppers to change the value and then look at the console - if you type in the number field it will correctly tell you the value, if you use the steppers then you just get
undefined
.Suggested Severity
None
Application/PAL
IBM API Connect
Code of Conduct
The text was updated successfully, but these errors were encountered: