Select components may throw non-primitive key error #233
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Primevue v1.0.7
I got confused with the error message when my SelectButton clearly describes the key and that key is a string and it is definitely unique.
The implementation bellow:
The error message is:
[Vue warn]: Avoid using non-primitive value as key, use string/number value instead. Found in <SelectButton> at node_modules/primevue/components/selectbutton/SelectButton.vue
However if I add the label
option-label="name"
to the SelectButton the error dissapears.I guess it is a bug, as the
option-label
is used as a key instead.The text was updated successfully, but these errors were encountered: