Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1130

Fix clipboard use after a couple of usages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.41
    • Component/s: Filters, Slots
    • Release Notes Summary:
      Clipboard is correctly reset after each usage.
    • Backlog priority:
      500
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.26, nxGang Sprint 11.1.27
    • Story Points:
      0

      Description

       Steps to reproduce on Nuxeo 9.10 + HF40:

      1. create a workspace TEST under Default domain > Workspaces
      2. create 2 Note documents under Default domain > Workspaces > TEST
      3. log out
      4. log in
      5. from the dashboard, browse to the first note
      6. click on the icon Add to clipboard
      7. observe that the document is added to the clipboard
      8. in the breadcrumb, click on Workspaces
      9. navigate to TEST then to the second Note document
      10. click on the icon Add to clipboard

      Observe that nothing happens and in the console there is this error

      elements.html:160584 Uncaught TypeError: Cannot read property 'contains' of undefined
          at HTMLElement.toggle (elements.html:160584)
          at HTMLElement.handler (elements.html:2371)
          at Object._fire (elements.html:7377)
          at Object.forward (elements.html:7772)
          at Object.click (elements.html:7738)
          at HTMLElement._handleNative (elements.html:7161)
      

      Expected behavior: the document is added to the clipboard without any error

      From my investigation, it should correspond to the backport of ELEMENTS-868 because I was not able to reproduce on 10.10 + HF and on nightly

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 10 minutes
                  3h 10m