sag_components 1.0.94 → 1.0.95
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.
|
@@ -54,7 +54,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
54
54
|
_ref$labelColor = _ref.labelColor,
|
|
55
55
|
labelColor = _ref$labelColor === void 0 ? "#1B30AA" : _ref$labelColor,
|
|
56
56
|
required = _ref.required,
|
|
57
|
-
|
|
57
|
+
inputRef = _ref.inputRef,
|
|
58
58
|
defaultValue = _ref.defaultValue,
|
|
59
59
|
_ref$allowedInput = _ref.allowedInput,
|
|
60
60
|
allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput;
|
|
@@ -181,8 +181,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
181
181
|
width: width
|
|
182
182
|
},
|
|
183
183
|
popupIcon: showPopupIcon ? /*#__PURE__*/_react.default.createElement(_ArrowDropDownIcon.ArrowDropDownIcon, {
|
|
184
|
-
width: "0.
|
|
185
|
-
height: "0.
|
|
184
|
+
width: "0.5em",
|
|
185
|
+
height: "0.5em"
|
|
186
186
|
}) : null,
|
|
187
187
|
forcePopupIcon: "auto",
|
|
188
188
|
renderInput: function renderInput(params) {
|
|
@@ -194,7 +194,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
194
194
|
},
|
|
195
195
|
required: required,
|
|
196
196
|
label: text,
|
|
197
|
-
inputRef:
|
|
197
|
+
inputRef: inputRef ? inputRef : null,
|
|
198
198
|
size: size,
|
|
199
199
|
sx: getTextFieldStyle(),
|
|
200
200
|
placeholder: placeHolder,
|
|
@@ -248,8 +248,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
248
248
|
return option.label;
|
|
249
249
|
},
|
|
250
250
|
popupIcon: showPopupIcon ? /*#__PURE__*/_react.default.createElement(_ArrowDropDownIcon.ArrowDropDownIcon, {
|
|
251
|
-
width: "0.
|
|
252
|
-
height: "0.
|
|
251
|
+
width: "0.5em",
|
|
252
|
+
height: "0.5em"
|
|
253
253
|
}) : null,
|
|
254
254
|
renderOption: function renderOption(props, option, _ref2) {
|
|
255
255
|
var selected = _ref2.selected;
|
|
@@ -275,7 +275,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
275
275
|
event.preventDefault();
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
inputRef:
|
|
278
|
+
inputRef: inputRef ? inputRef : null,
|
|
279
279
|
required: required,
|
|
280
280
|
InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
|
|
281
281
|
style: {
|
|
@@ -305,7 +305,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
305
305
|
event.preventDefault();
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
|
-
inputRef:
|
|
308
|
+
inputRef: inputRef ? inputRef : null,
|
|
309
309
|
required: required,
|
|
310
310
|
InputLabelProps: {
|
|
311
311
|
style: {
|