mantine icon indicating copy to clipboard operation
mantine copied to clipboard

Select/MultiSelect with data group undefined or empty string raise each child in a list should have a unique "key" prop.

Open AntoineGst opened this issue 2 years ago • 0 comments

What package has an issue

@mantine/core

Describe the bug

When group is undefined or empty, a warning appear :

Warning: Each child in a list should have a unique "key" prop. 

What version of @mantine/hooks page do you have in package.json?

5.1

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/s/multiselect-with-empty-group-0gr59x

Do you know how to fix the issue

No response

Are you willing to participate in fixing this issue and create a pull request with the fix

No response

Possible fix

Introduce group label and group key separately instead of group to avoid this warning.

AntoineGst avatar Aug 08 '22 12:08 AntoineGst

Fixed in 5.1.5

rtivital avatar Aug 13 '22 08:08 rtivital