tenjin-ui-kit 0.3.15 → 0.3.16
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.
|
@@ -155,21 +155,14 @@ var SimpleSelect = function SimpleSelect(_ref) {
|
|
|
155
155
|
color: "red"
|
|
156
156
|
}
|
|
157
157
|
}, " * ") : "")), /*#__PURE__*/_react.default.createElement(_material.Select, _extends({}, rest, {
|
|
158
|
-
displayEmpty
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}, placeholder || "Select an option");
|
|
167
|
-
}
|
|
168
|
-
var selectedOption = options === null || options === void 0 ? void 0 : options.find(function (option) {
|
|
169
|
-
return (option === null || option === void 0 ? void 0 : option.value) === selected;
|
|
170
|
-
});
|
|
171
|
-
return selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label;
|
|
172
|
-
},
|
|
158
|
+
// displayEmpty // To display the placeholder
|
|
159
|
+
// renderValue={(selected) => {
|
|
160
|
+
// if (!selected) {
|
|
161
|
+
// return <span style={{ color: "#acacac" }}>{placeholder || "Select an option"}</span>;
|
|
162
|
+
// }
|
|
163
|
+
// const selectedOption = options?.find((option) => option?.value === selected);
|
|
164
|
+
// return selectedOption?.label;
|
|
165
|
+
// }}
|
|
173
166
|
fullWidth: true,
|
|
174
167
|
onClose: function onClose() {
|
|
175
168
|
return setSearchText("");
|