Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19056

Selectize does not load values when typing a letter during the initialization

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      When clicking, e.g., on the list filter in a live data, the initial values that are displayed are loaded from a REST service with an empty filter value. When typing a string into the filter, a refined list is loaded from the REST service that is filtered according to the user input. However, when typing the string before this initial request completes, no second request is started with the typed string. To reproduce, it is necessary that the value that shall be loaded is after the first 10 values as the first 10 values are also returned without a filter.

      Note that while I believe that this could be a problem when actually using LD, this particularly annoying in UI tests where you need an extra "click" on the input and then waiting for the options to load before you can use the list filter.

      Steps to reproduce:

      • Create a class with a static list property that has more than 10 values
      • Create a LD for that class
      • Click in the input field for the filter of that list property and immediately type some character that occurs in a value that is after the first 10 values

      Expected result:

      • All matching values are displayed

      Actual result:

      • Only values that are among the first 10 values are displayed

      I have attached a screenshot that shows how typing "y" very fast only displays the "(empty)"-value while the correct result would be to also display the "yes"-value as shown in the second screenshot.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: