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

Fix infinite scrolling on data table when used in search result layout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.12, 2.3.2
    • Component/s: UI

      Description

      Using the nuxeo-data-table with the infinite scrolling mode (paginable attribute) is broken in Web UI search. Whenever you click a search criteria in the search form, the the form appears and stays as loading. There is the following error in the console:

      nuxeo-search-form.html:838 Uncaught TypeError: Cannot read property 'then' of undefined
          at HTMLElement._fetch (nuxeo-search-form.html:838)
          at HTMLElement._paramsChanged (nuxeo-search-form.html:636)
          at Object.runMethodEffect [as fn] (property-effects.html:818)
          at runEffectsForProperty (property-effects.html:162)
          at runEffects (property-effects.html:128)
          at HTMLElement._propertiesChanged (property-effects.html:1711)
          at HTMLElement._flushProperties (properties-changed.html:341)
          at HTMLElement._flushProperties (property-effects.html:1559)
          at HTMLElement._invalidateProperties (property-effects.html:1531)
          at runNotifyEffects (property-effects.html:261)
      

      it's because the data-table does not return the promise in the _fetchPage method.

        Attachments

          Activity

            People

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