@scheels-softdev/kendoreact-generics 2.5.1 → 2.5.3

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.
@@ -50,21 +50,14 @@ export function GenericDropdown({ data, selectedId, selectedData, onChange, text
50
50
  setDataList(data.map((x) => {
51
51
  return Object.assign(Object.assign({}, x), { textValue: getTextValue(x, textFields.map((x) => x.toString()), separator) });
52
52
  }));
53
- setState(Object.assign(Object.assign({}, state), { total: data.length, subsetData: data.map((x) => {
54
- return Object.assign(Object.assign({}, x), { textValue: getTextValue(x, textFields.map((x) => x.toString()), separator) });
55
- }) }));
56
53
  }
57
54
  }, [data, textFields, separator]);
58
55
  const findByIndex = (id, idKey) => {
59
- console.log(id, data, idField);
60
56
  const item = dataList.find((item) => id === item[idKey || "id"]);
61
- console.log(item);
62
57
  return item;
63
58
  };
64
59
  const findByValue = (item) => {
65
- console.log(item, data);
66
60
  const returnVal = dataList.find((x) => JSON.stringify(Object.assign(Object.assign({}, x), selectedData)) === JSON.stringify(Object.assign({}, x)));
67
- console.log(returnVal);
68
61
  return returnVal;
69
62
  };
70
63
  return (_jsx("div", Object.assign({ "data-testid": "dropdown" }, { children: dataList.length && !isLoading ? (_jsx(ComboBox, { style: style, label: title, disabled: disabled, data: state.subsetData, textField: "textValue", virtual: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",