@councilbox/councilbox-ui 0.6.18 → 0.6.19
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.
|
@@ -150,6 +150,8 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
150
150
|
propsFormControl = _ref.propsFormControl,
|
|
151
151
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
152
152
|
|
|
153
|
+
var value = props.value;
|
|
154
|
+
|
|
153
155
|
var getIcon = function getIcon() {
|
|
154
156
|
var icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
155
157
|
className: "cbx-inputText-endAdornment ".concat(endAdornment)
|
|
@@ -200,6 +202,10 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
200
202
|
return variantInput;
|
|
201
203
|
};
|
|
202
204
|
|
|
205
|
+
if (Object.hasOwn(props, 'value') && props.value === undefined) {
|
|
206
|
+
value = '';
|
|
207
|
+
}
|
|
208
|
+
|
|
203
209
|
return /*#__PURE__*/_react.default.createElement(_FormControl.default, _extends({
|
|
204
210
|
fullWidth: fullWidth,
|
|
205
211
|
sx: _objectSpread(_objectSpread({
|
|
@@ -273,7 +279,8 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
273
279
|
PaperProps: {
|
|
274
280
|
className: fullWidth ? 'cbx-selectInput-fullwidth' : ''
|
|
275
281
|
}
|
|
276
|
-
}
|
|
282
|
+
},
|
|
283
|
+
value: value
|
|
277
284
|
}, props, {
|
|
278
285
|
InputProps: {
|
|
279
286
|
endAdornment: getIcon()
|