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

jQuery error trying to collapse menus in Control Panel when using jQuery3.5.0

    Details

      Description

      jQuery 3.5.0 included a regression that causes panels within our control menu not being collapsed.

      This issue is not reproducible in Master because the uses of jQuery has been removed, however, since the solution is upgrade jQuery to 3.5.1, I'm reporting this issue to master to later be able to backport it to the rest of branches.

      Steps to reproduce

      1. Backport LPS-112136 to 7.2.x where jQuery is still used.
      2. Start Liferay.
      3. In Control Menu, try to collapse the Site Administration Menu

      Expected behavior
      Site Administration Menu has been collapsed.

      Actual behavior
      Site Administration Menu is not collapsed and you can see below error in the browser console:

      collapse.js:346 Uncaught TypeError: Cannot convert object to primitive value
          at RegExp.test (<anonymous>)
          at HTMLDivElement.<anonymous> (collapse.js:346)
          at Function.each (jquery.min.js:2)
          at S.fn.init.each (jquery.min.js:2)
          at S.fn.init.a._jQueryInterface [as collapse] (collapse.js:337)
          at HTMLDivElement.<anonymous> (collapse.js:385)
          at Function.each (jquery.min.js:2)
          at S.fn.init.each (jquery.min.js:2)
          at HTMLAnchorElement.<anonymous> (collapse.js:381)
          at HTMLDocument.dispatch (jquery.min.js:2)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              summer.zhang Summer Zhang
              Reporter:
              antonio.ortega Antonio Ortega
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              Antonio Ortega
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                24 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP93
                  7.0.10.14 DXP SP14
                  7.0.X
                  7.1.10 DXP FP18
                  7.1.X
                  7.2.10 DXP FP7
                  7.2.X
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master