Finnaly i found possible problem component react-select box filtering data by method :
filterOptions (excludeOptions) {
var filterValue = this.state.inputValue;
var options = this.props.options || [];
if (this.props.filterOptions) {
// Maintain backwards compatibility with boolean attribute
const filterOptions = typeof this.props.filterOptions === 'function'
? this.props.filterOptions
: defaultFilterOptions;
return filterOptions(
options,
filterValue,
excludeOptions,
{
filterOption: this.props.filterOption,
ignoreAccents: this.props.ignoreAccents,
ignoreCase: this.props.ignoreCase,
labelKey: this.props.labelKey,
matchPos: this.props.matchPos,
matchProp: this.props.matchProp,
valueKey: this.props.valueKey,
}
);
} else {
return options;
}
},
This method filters data by valueKey, lableKey and etc. but we filter data on BE. I just explict turn off this feature by props: filterOptions. Also upgrade react-select
https://www.npmjs.com/package/react-select
https://github.com/JedWatson/react-select/issues/1714
commit: https://github.com/bcvsolutions/CzechIdMng/commit/48f1519e79fbe2af6e73ffcb22e07245517f6921
please Radek could you make a review? Thanks :]