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

http://codepen.io/anon/pen/XMpGvY?editors=001

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

value is used as key in Select, so please keep value 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?