@scheels-softdev/kendoreact-generics 2.1.10 → 2.1.12

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.
@@ -7,8 +7,9 @@ export function FilterCellDropdown(props) {
7
7
  let hasValue = (value) => Boolean(value);
8
8
  // Define an onChange function that will be called when the ComboBox value changes
9
9
  const onChange = (event) => {
10
+ var _a, _b;
10
11
  // Update the hasValue variable based on the new value of the ComboBox
11
- hasValue = hasValue(event.target.value.id);
12
+ hasValue = hasValue((_b = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.id);
12
13
  // Call the onChange function passed down as a prop, passing a filter object with the new value and operator
13
14
  props.onChange({
14
15
  value: hasValue ? event.target.value.id : "",
@@ -65,6 +65,6 @@ idField, title, showClearButton, }) {
65
65
  }, onChange: (e) => changeEvent(e), onBlur: (e) => e.nativeEvent.preventDefault(), clearButton: showClearButton, value: selectedId !== undefined
66
66
  ? selectedId !== 0
67
67
  ? dataList.find((item) => selectedId === item[idField || "id"])
68
- : ""
68
+ : undefined
69
69
  : dataList.find((x) => JSON.stringify(Object.assign(Object.assign({}, x), selectedData)) === JSON.stringify(Object.assign({}, x))) }) })));
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",