minChars in nuxeo-dropdown-aggregation not work

Hello,

Anyone have any idea why the “min-chars” parameter will not be considered in “nuxeo-dropdown-aggregation”?

Thank you

0 votes

1 answers

192 views

ANSWER



Hello,

It should work. Can you share the complete element code?

Note that https://github.com/nuxeo/nuxeo-web-ui/blob/eb6da8f85735d822eaab8b337539cf7376e1efd2/elements/search/default/nuxeo-default-search-form.html#L55 doesn't need this property to display the list of value without any character as the default value is 0 (https://www.webcomponents.org/element/nuxeo/nuxeo-ui-elements/elements/nuxeo-dropdown-aggregation).

Regards

0 votes



Thank you for the answer,

The component code is as follows:

<nuxeo-dropdown-aggregation placeholder="publication"
                                  id="publicationName"
                                  data="[[aggregations.publicationName_agg]]"
                                  value="{{params.publicationName_agg}}"
                                  name="publication"
                                  min-chars="3"
                                  multiple="true">
      </nuxeo-dropdown-aggregation>

In fact the parameter is considered as always equal to 0 so as soon as I click on the component, the list is displayed even if the min-chars are greater than 0.

01/07/2021

Hello,

@Gregory Carlin, Is it a bug in nuxeo or my node is missing some tips ?

01/08/2021