ebayui-core-react
ebayui-core-react copied to clipboard
ebay-menu-button: labelWithPrefixAndIcon causes key warnings
Hello!
When I'm using <EbayMenuButton>, with prefixLabel and text, I get key warnings in the dev console:
browser-init.tsx:11 Warning: Each child in a list should have a unique "key" prop.
Check the render method of `EbayMenuButton`. See https://fb.me/react-warning-keys for more information.
in span (created by EbayMenuButton)
in EbayMenuButton (created by InventoryFilter)
in InventoryFilter (created by InventoryGrid)
in section (created by InventoryGrid)
in div (created by InventoryGrid)
in InventoryGrid (created by MainPage)
in div (created by ModuleContainer)
in ModuleContainer (created by MainPage)
in section (created by MainPage)
in MainPage
browser-init.tsx:11 Warning: Each child in a list should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.
in span (created by EbayButtonText)
in EbayButtonText (created by EbayButtonExpand)
in span (created by EbayButtonCell)
in EbayButtonCell (created by EbayButtonExpand)
in EbayButtonExpand (created by EbayButton)
in button (created by EbayButton)
in EbayButton (created by EbayButton)
in EbayButton (created by EbayMenuButton)
in span (created by EbayMenuButton)
in EbayMenuButton (created by InventoryFilter)
in InventoryFilter (created by InventoryGrid)
in section (created by InventoryGrid)
in div (created by InventoryGrid)
in InventoryGrid (created by MainPage)
in div (created by ModuleContainer)
in ModuleContainer (created by MainPage)
in section (created by MainPage)
in MainPage
I've narrowed it down to the labelWithPrefixAndIcon function withing ebay-menu-button/menu-button.tsx
Versions
"react": "^16.12.0"
"@ebay/ui-core-react": "^6.2.1"
thanks we'll take a look!
Not seeing in the latest version.