We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue Checkbox onChange event only returns true|false (is missing event id and value) as indicated in the code https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/Checkbox/Checkbox.js#L113
Recreate Issue Using https://codesandbox.io/s/github/carbon-design-system/carbon/tree/master/packages/react/examples/codesandbox
https://codesandbox.io/s/github/carbon-design-system/carbon/tree/master/packages/react/examples/codesandbox
index.js
import React from "react"; import { render } from "react-dom"; import { Checkbox } from "carbon-components-react"; const App = () => ( <div> <Checkbox labelText="Do you agree?" id="testID" onChange={event => { console.log(event) }} /> </div> ); render(<App />, document.getElementById("root"));
Console
The text was updated successfully, but these errors were encountered:
based on https://github.com/carbon-design-system/carbon/blob/master/packages/react/src/components/Checkbox/Checkbox.js#L45 it looks like the event object should be returned as the 3rd parameter. we should change this to match the other change handlers in the codebase in the next major release
event
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Issue
Checkbox onChange event only returns true|false (is missing event id and value) as indicated in the code
https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/Checkbox/Checkbox.js#L113
Recreate Issue
Using
https://codesandbox.io/s/github/carbon-design-system/carbon/tree/master/packages/react/examples/codesandbox
index.js
Console
to see event only outputs true|false (no id returned)The text was updated successfully, but these errors were encountered: