@singularsystems/neo-react 0.10.54 → 0.10.55

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.
@@ -52,6 +52,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
52
52
  return items.map(function (item) { return (__assign(__assign({}, item), { item: item, value: item[_this.valueMember], label: item[_this.displayMember] })); });
53
53
  };
54
54
  AutoCompleteDropDown.prototype.onItemSelected = function (args, action) {
55
+ var _a, _b;
55
56
  var onItemSelected = this.props.onItemSelected;
56
57
  if (this.props.bindItems) {
57
58
  var itemsProperty = this.props.bindItems;
@@ -64,7 +65,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
64
65
  bindIdsList.push(action.option.value);
65
66
  }
66
67
  if (onItemSelected) {
67
- onItemSelected(action.option.item);
68
+ onItemSelected((_a = action.option) === null || _a === void 0 ? void 0 : _a.item);
68
69
  }
69
70
  }
70
71
  else if (action.action === "remove-value") {
@@ -97,7 +98,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
97
98
  this.props.bindDisplay.value = args ? args.label : "";
98
99
  }
99
100
  if (onItemSelected) {
100
- onItemSelected(action.option.item);
101
+ onItemSelected((_b = args) === null || _b === void 0 ? void 0 : _b.item);
101
102
  }
102
103
  }
103
104
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "0.10.54",
3
+ "version": "0.10.55",
4
4
  "description": "React application logic and components for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",