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
{{ message }}
Repository navigation
[BUG] react-dom: Each child in a list should have a unique "key" prop #1433
I experienced this issue in a bigger context but I found an easy way to reproduce it. Please run the Quickstart tutorial from https://dash.plotly.com/datatable
Screenshots
Describe your context
Windows 10 machine on both Edge and Chrome browsers
How do I install just dash-table? I have always done pip install dash which had dash-table dependency. I can clone the dash master and try pip install . locally but how do I point to the PR for dash-table dependency?
hi @BaconEggsRL Can you please share the text message or an image of the warning you're getting?
Sure:
Warning: Each child in a list should have a unique "key" prop.
Check the top-level render call using <div>. See https://reactjs.org/link/warning-keys for more information.
The warning above that (can't see in screenshot) is for "Invalid aria prop aria-description". Which can be fixed by using react 18 version. But the other warning for unique key is present no matter what.
The warning appears when you activate the custom tooltip.
The warning is from ag-grid, It may be missing a key somewhere.
The aria-description is a new dom attribute, seems like it's not supported by earlier react version which is to be expected.
I think you can disregard the warning unless it's impacting the app performance.
Activity
themegaphoenix commentedon Nov 27, 2020
Hi,
I am also having the same issue.
This pull request might be what we need:
plotly/dash-table#690
chriddyp commentedon Nov 27, 2020
These are just warnings and can be ignored unless you've found a way that this effects the behavior of the table itself.
themegaphoenix commentedon Nov 27, 2020
I understand, but nothing makes me happier than a clean console :). It should hopefully be resolved soon
tashrifbillah commentedon Nov 27, 2020
I would love to test this PR. Two points--
dash-table? I have always donepip install dashwhich haddash-tabledependency. I can clone thedashmaster and trypip install .locally but how do I point to the PR fordash-tabledependency?antoinerg commentedon Sep 30, 2021
Closed by #1778
michaelbabyn commentedon May 2, 2022
reopening since it looks like this issue still appears when the
presentationcolumn attribute is set tomarkdownin any of the columns.E.g see this simple example from the forum:
It appears that this was an omission when markdown presentation mode was added because it doesn't have a key prop added whereas input and dropdown do
alexjercan commentedon Jul 12, 2023
I have made the change you suggested @michaelbabyn and the example works without the console error.
BaconEggsRL commentedon Jan 9, 2024
Hi--I am still getting this warning when running the example code here:
https://dash.plotly.com/dash-ag-grid/tooltips
Thoughts?
Coding-with-Adam commentedon Jan 9, 2024
hi @BaconEggsRL
Can you please share the text message or an image of the warning you're getting?
BaconEggsRL commentedon Jan 9, 2024
Sure:
The warning above that (can't see in screenshot) is for "Invalid aria prop
aria-description". Which can be fixed by using react 18 version. But the other warning for unique key is present no matter what.The warning appears when you activate the custom tooltip.
Thanks
Coding-with-Adam commentedon Jan 12, 2024
The warning is from ag-grid, It may be missing a key somewhere.
The aria-description is a new dom attribute, seems like it's not supported by earlier react version which is to be expected.
I think you can disregard the warning unless it's impacting the app performance.