ant-design: Select does not work if two elements has the same value (but different keys)
What do you expected?
Works without error
What happen?
Error: flattenChildren(...): Encountered two children with the same key,
.$590. Child keys must be unique; when two children share a key, only the first child will be used
Re-producible online demo
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (8 by maintainers)
value
is used askey
in Select, so please keepvalue
unique.I cant. In example above two different countries have the same prefix. Can it be solved somehow? Or I need to do some dirty hack?