Skip to content

Commit

Permalink
fix: even more explicit arguments for callback function
Browse files Browse the repository at this point in the history
  • Loading branch information
bpas247 committed Jul 3, 2019
1 parent c037abc commit e4e85a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/examples/Button/ToggleButtonGroupControlled.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function ToggleButtonGroupControlled() {
const [value, setValue] = useState([1, 3]);

const handleChange = val => setValue(val);
const handleChange = (val, event) => setValue(val);

return (
<ToggleButtonGroup type="checkbox" value={value} onChange={handleChange}>
Expand Down

0 comments on commit e4e85a3

Please sign in to comment.