@scheels-softdev/kendoreact-generics 4.0.1 → 4.0.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.
Files changed (2) hide show
  1. package/GenericDropdown.js +6 -12
  2. package/package.json +1 -1
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { useState, useEffect } from "react";
14
14
  import { ComboBox } from "@progress/kendo-react-dropdowns";
15
15
  export function GenericDropdown(_a) {
@@ -28,16 +28,10 @@ export function GenericDropdown(_a) {
28
28
  setSelectedItem(null);
29
29
  }
30
30
  }, [selectedData, selectedId, idField, data]);
31
- // Handle clearing the selection
32
- const handleClear = () => {
33
- setSelectedItem(null);
34
- if (onClear)
35
- onClear();
36
- };
37
- return (_jsxs("div", { children: [_jsx(ComboBox, Object.assign({ data: data, value: selectedItem, virtual: {
38
- pageSize: props.pageSize || 6,
39
- skip: 0,
40
- total: data.length,
41
- } }, props)), _jsx("button", Object.assign({ onClick: handleClear }, { children: "Clear" })), " "] }));
31
+ return (_jsx("div", { children: _jsx(ComboBox, Object.assign({ data: data, value: selectedItem, virtual: {
32
+ pageSize: props.pageSize || 6,
33
+ skip: 0,
34
+ total: data.length,
35
+ } }, props)) }));
42
36
  }
43
37
  export default GenericDropdown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest",