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

Fix validatity check for nuxeo-select2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 1.0.0
    • Component/s: UI

      Description

      We get an error at validation when it is multuiple and required and when it has not been used.

            _getValidity: function() {
              if (!this.required) {
                return true;
              }
              return this.multiple ?  this.value.length > 0 : !!this.value;
            },
      

      Indeed value can be undefined.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: