Closed hsaleem11 closed 4 years ago
@hsaleem11 All places key attr are there. Can u please share ur options JSON structure?
Hello @srigar
Here is an example of the JSON structure I am using:
{id: 0, value: "testValue", groupName: "testGroupName"}
The id's are unique for all options in my list. I also tried adding a "key" property to my JSON structure, but it still shows the same error. Also, I am populating the dropdown list inside the "componentDidMount()" function. Is my JSON structure correct, or am I using this wrong?
I am facing the same problem also. I found this problem will only exist if using parameter 'groupBy'
Yes, if I remove the 'groupBy' parameter the error doesn’t show up anymore. However, I still need the items to be grouped. Does anyone know how to resolve this issue?
Went ahead and opened the PR since the change was small.
https://github.com/srigar/multiselect-react-dropdown/pull/32
Thanks for looking into this @jmsaucier, it looks like this should fix the issue. @srigar can you review and merge this PR?
Changes are available in @1.4.8
Hello, I get this warning when using this library:
Warning: Each child in a list should have a unique "key" prop
I added a unique key to each item I'm rendering in the dropdown, but this warning doesn’t go away. I also followed the examples you have, but this issue is still there. Are you providing a unique key for each item in the dropdown list in the source code?