carbon
carbon copied to clipboard
[Bug]: `TileGroup` `onChange` type breaks type checking
Package
@carbon/react
Browser
No response
Package version
1.84.0
React version
No response
Description
The TileGroup component's onChange prop is typed with unknown for the selected value. Because of this typing, state updates require type assertions.
Reproduction/example
https://stackblitz.com/edit/github-6lca4mxc?file=src%2FApp.tsx
Steps to reproduce
See type error in reproduction.
Suggested Severity
None
Application/PAL
DataPower
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
- [x] I checked the current issues for duplicate problems
I'm going to work on this one.