@arquimedes.co/eureka-forms 1.4.8-test → 1.4.9-test
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.
|
@@ -139,16 +139,17 @@ export default function RoundedSmartSelect(_a) {
|
|
|
139
139
|
return (_jsx(Autocomplete, { size: "small", fullWidth: true, openOnFocus: true, disabled: cantEdit || disabled, popupIcon: showIcon && icon ? icon : undefined, onOpen: function () {
|
|
140
140
|
//Show loading icon if loading
|
|
141
141
|
}, loading: loading, loadingText: 'Cargando...', closeIcon: false, options: options, getOptionLabel: function (option) {
|
|
142
|
+
var _a, _b;
|
|
142
143
|
// Value selected with enter, right from the input
|
|
143
144
|
if (typeof option === 'string') {
|
|
144
145
|
return option;
|
|
145
146
|
}
|
|
146
147
|
else if (option === null || option === void 0 ? void 0 : option.inputValue) {
|
|
147
|
-
return option.inputValue;
|
|
148
|
+
return (_a = option.inputValue) !== null && _a !== void 0 ? _a : '';
|
|
148
149
|
}
|
|
149
150
|
else {
|
|
150
151
|
// Regular option
|
|
151
|
-
return option.label;
|
|
152
|
+
return (_b = option.label) !== null && _b !== void 0 ? _b : '';
|
|
152
153
|
}
|
|
153
154
|
}, getOptionSelected: getOptionSelected, PopperComponent: function (_a) {
|
|
154
155
|
var style = _a.style, props = __rest(_a, ["style"]);
|
package/package.json
CHANGED