carbon icon indicating copy to clipboard operation
carbon copied to clipboard

[Bug]: `TileGroup` `onChange` type breaks type checking

Open adamalston opened this issue 5 months ago • 1 comments

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

adamalston avatar Jun 09 '25 15:06 adamalston

I'm going to work on this one.

MichCest avatar Jun 13 '25 17:06 MichCest