@dartech/arsenal-ui 1.4.73 → 1.4.74
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/index.js +9 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1058,7 +1058,7 @@ function ControlQueryAutocomplete(_a) {
|
|
1058
1058
|
}
|
1059
1059
|
}, [data, options]);
|
1060
1060
|
const handleOpen = () => {
|
1061
|
-
setOpen(true);
|
1061
|
+
if (options.length) setOpen(true);
|
1062
1062
|
};
|
1063
1063
|
const handleClose = () => {
|
1064
1064
|
setOpen(false);
|
@@ -1114,10 +1114,14 @@ function ControlQueryAutocomplete(_a) {
|
|
1114
1114
|
},
|
1115
1115
|
InputProps: Object.assign(Object.assign({}, params.InputProps), {
|
1116
1116
|
endAdornment: endAdornment ? endAdornment : jsxs(React.Fragment, {
|
1117
|
-
children: [isFetching ? jsx(
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1117
|
+
children: [isFetching ? jsx(InputAdornment, Object.assign({
|
1118
|
+
position: "end"
|
1119
|
+
}, {
|
1120
|
+
children: jsx(CircularProgress, {
|
1121
|
+
color: "inherit",
|
1122
|
+
size: 20
|
1123
|
+
})
|
1124
|
+
})) : null, params.InputProps.endAdornment]
|
1121
1125
|
}),
|
1122
1126
|
startAdornment: startAdornment ? startAdornment : params.InputProps.startAdornment
|
1123
1127
|
})
|