@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.
- package/GenericDropdown.js +6 -12
- package/package.json +1 -1
package/GenericDropdown.js
CHANGED
@@ -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
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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;
|