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

Reset incorrect entry in nuxeo-user-suggestion element when leaving the field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.14, 2.3.3
    • Component/s: Selectivity
    • Release Notes Summary:
      An incorrect entry in nuxeo-user-suggestion element is removed when leaving the field.
    • Tags:
    • Backlog priority:
      300
    • Browser:
    • Sprint:
      nxGang Sprint 10.3.2
    • Story Points:
      2

      Description

      Requirement:
      you have to define a multi-valued User/Group field in your document schema and use the nuxeo-user-suggestion element in a code similar to

          <nuxeo-user-suggestion value="{{document.properties.schema:users}}" label="Users" multiple="true" search-type="USER_TYPE" role="widget" min-chars="1"></nuxeo-user-suggestion>
      

      Steps to reproduce:

      1. Edit a document with this multi-valued User/Group field
      2. Type an incorrect value in the field, like foo
      3. Click outside of the field
      4. Observe that the value foo is still present in the suggestion field
      5. Click back to the suggestion field
      6. The value foo is removed

      At step 4, the field shoud be reset, otherwise it is possible to submit the form with this incorrect entry.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 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 - 2 hours
                2h