Open guyfedwards opened 5 years ago
Currently trying to set an items value as an object doesn't really work, keys become [Object object] among other things.
[Object object]
It would be great to be able to pass an items array such as:
items: Array<{ value: { [string]: any } | string | number, label: React.Node, id: string }>
For clarity I think it would benefit from an additional property of id rather than trying to be clever with value/label as both of those should be able to be nodes
id
Linked PR solves a different problem.
Currently trying to set an items value as an object doesn't really work, keys become
[Object object]
among other things.It would be great to be able to pass an items array such as:
For clarity I think it would benefit from an additional property of
id
rather than trying to be clever with value/label as both of those should be able to be nodes