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

nuxeo-document-suggestion deletion behavior is not homogeneous

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0
    • Fix Version/s: 2.4.8, 3.0.0
    • Component/s: Widgets
    • Release Notes Summary:
      The nuxeo-document-suggestion element only delete the last item when using the backspace key.
    • Tags:
    • Backlog priority:
      550
    • Sprint:
      nxGang Sprint 11.1.10
    • Story Points:
      5

      Description

      Setup the project

      1. in Studio create a project
      2. create a document type named multiTest with a multi-valued document property
      3. generate the form in Designer
      4. synchronize the project server-side
      5. create 4 documents aaa, bbb, ccc and cccd

      Homogeneous scenario

      1. create a 4th document of type multiTest
      2. in the creation form search and select aaa, and bbb
      3. search for ccc and click the found document (selectValue.png)
      4. observe it appears in the result (see valueSelected.png)
      5. press Backspace
      6. observe it deletes all the results
      7. save the document

      Non-homogeneous scenario

      1. open the myGeniusDoc document
      2. click the multivalued field
      3. press Backspace
      4. observe it does not empty the field but rather selects the value next to the cursor (see selectInsteadOfDelete.png)
      5. press Backspace a second time
      6. observe the value is deleted but the other values remain (see secondPressDelete.png)
      7. close the edition panel
      8. open the myGeniusDoc document again
      9. search for ccc and click the found document
      10. observe it appears in the result
      11. press Backspace
      12. observe the field is now empty

      Expected behavior: in every case. Having the cursor at the end of the results and pressing the Backspace key should always empty the field or select the last value before deleting it. It should not have different behaviors based on the previous actions.

        Attachments

        1. secondPressDelete.png
          secondPressDelete.png
          59 kB
        2. selectInsteadOfDelete.png
          selectInsteadOfDelete.png
          49 kB
        3. selectValue.png
          selectValue.png
          81 kB
        4. valueSelected.png
          valueSelected.png
          50 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours, 20 minutes
                  6h 20m