You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ... (check one with "x")
[ X] bug report
[ ] feature request
Current behavior
Dropdown component when using dataKey attribute throws the following error in the console:
Warning: Encountered two children with the same key, null. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
in select (created by Dropdown)
in div (created by Dropdown)
in div (created by Dropdown)
Expected behavior
No errors.
The text was updated successfully, but these errors were encountered:
I couldn't replicate it. Could you please attach a plunker or codesandbox link for us to replicate? You can use https://codesandbox.io/s/qjx332qq4 for the sample.
mertsincan, you assume that the list of objects passed to Dropdown will have a "value" property but this is restricting. I have used my own property as dataKey which cannot be recognized since code is searching for "value" property. I would suggest that if value property is not found, then use the option itself. Try your own example but instead of value use value1. it will log the exception.
I'm submitting a ... (check one with "x")
[ X] bug report
[ ] feature request
Current behavior
Dropdown component when using dataKey attribute throws the following error in the console:
Warning: Encountered two children with the same key,
null
. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.in select (created by Dropdown)
in div (created by Dropdown)
in div (created by Dropdown)
Expected behavior
No errors.
The text was updated successfully, but these errors were encountered: