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

nuxeo-path-suggestion validation error on paper-typeahead

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2, 3.1.x
    • Component/s: UI

      Description

      Add a {{<nuxeo-path-suggestion>}} element to a doctype edit layout. Click “Save” and get the following error:

       

      nuxeo-app.html-145.js:373 Uncaught TypeError: this.inputElement.validate is not a functionat HTMLElement.validate (nuxeo-app.html-145.js:373)at HTMLElement.validate (nuxeo-app.html-55.js:71)at HTMLElement.validate (elements.html-72.js:39)at HTMLElement._validate (elements.html-73.js:27)at HTMLElement.save (elements.html-73.js:56)at HTMLElement.handler (nuxeo-app.html-12.js:79)at Object._fire (nuxeo-app.html-17.js:674)at Object.forward (nuxeo-app.html-17.js:1069)at Object.click (nuxeo-app.html-17.js:1032)at HTMLElement._handleNative (nuxeo-app.html-17.js:452)

      where this.inputElement.validate appears to defined in Polymer.PaperInputBehavior which is referenced by the <paper-typeahead> element in <nuxeo-path-suggestion>. The this.inputElement is <input id="input" autocorrect$="on" autocomplete="off" placeholder="" autocapitalize="none"> which apparently has no validate() method.

      A possible workaround could be to create a local validate function on the <nuxeo-path-suggestion> element.

        Attachments

          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, 30 minutes
                  6h 30m