Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-136699

Duplicated keys in DropdownMenu component

Details

    Description

      Motivation

      The DropdownMenu component is throwing a warn due to duplicate ids.
      The map over `items` prop is not using a `key` prop for each item.

      modules/apps/frontend-taglib/frontend-taglib-clay/DropdownMenu.js

      Reproduce

      • Navigate to Product Menu > Content & Data > Web Content and at least 1 web basic contents
      • Navigate to Product Menu > Content & Data > Documents and Media and create at least 1 document or media
      • Enable FF
      echo "enabled=B\"true\"" > ../bundles/osgi/configs/com.liferay.content.dashboard.web.internal.configuration.FFContentDashboardDocumentConfiguration.config
      • Navigate to Applications Menu > Content Dashboard, open browser console, a warning should appear:
       VM104816 react_devtools_backend.js:2574 Warning: Each child in a list should have a unique "key" prop.
       
      

       

      Attachments

        Issue Links

          Activity

            People

              beltran.rengifo Beltran Rengifo
              beltran.rengifo Beltran Rengifo
              Kiyoshi Lee Kiyoshi Lee
              Beltran Rengifo Beltran Rengifo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 6 weeks, 6 days ago

                Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master