@michalrakus/x-react-web-lib 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,6 +128,10 @@ var XAutoCompleteBase = /** @class */ (function (_super) {
128
128
  var queryNormalized_1 = XUtils_1.XUtils.normalizeString(event.query);
129
129
  filteredSuggestions = this.props.suggestions.filter(function (suggestion) {
130
130
  var fieldValue = _this.getDisplayValue(suggestion);
131
+ // specialna null polozka (prazdny objekt) - test dame az za test fieldValue na undefined - koli performance
132
+ if (fieldValue === undefined && Object.keys(suggestion).length === 0) {
133
+ return false;
134
+ }
131
135
  // bolo:
132
136
  //return XUtils.normalizeString(fieldValue).startsWith(queryNormalized);
133
137
  return XUtils_1.XUtils.normalizeString(fieldValue).indexOf(queryNormalized_1) !== -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michalrakus/x-react-web-lib",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rimraf lib",