@availity/mui-autocomplete 1.0.1 → 1.0.3-alpha.0
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/CHANGELOG.md +14 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/lib/AsyncAutocomplete.tsx +1 -1
- package/src/lib/Autocomplete.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.3-alpha.0](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.2...@availity/mui-autocomplete@1.0.3-alpha.0) (2025-03-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-autocomplete:** refetch on blur when filter returns no results ([08cb7b6](https://github.com/Availity/element/commit/08cb7b63d055518fd02adb740da9aeb02d146f5f))
|
|
11
|
+
|
|
12
|
+
## [1.0.2](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.1...@availity/mui-autocomplete@1.0.2) (2025-03-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **mui-autocomplete:** resolve InputProps overwrites ([1700687](https://github.com/Availity/element/commit/17006876c43c4a8ec00d3cf5b2d3f3c4ffa35bb1))
|
|
18
|
+
|
|
5
19
|
## [1.0.1](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.0...@availity/mui-autocomplete@1.0.1) (2025-02-26)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var Autocomplete = (_a) => {
|
|
|
114
114
|
size: "small"
|
|
115
115
|
};
|
|
116
116
|
const resolvedProps = (params) => ({
|
|
117
|
-
InputProps: __spreadProps(__spreadValues(__spreadValues({},
|
|
117
|
+
InputProps: __spreadProps(__spreadValues(__spreadValues({}, params == null ? void 0 : params.InputProps), FieldProps == null ? void 0 : FieldProps.InputProps), {
|
|
118
118
|
endAdornment: props.loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
119
119
|
(params == null ? void 0 : params.InputProps.endAdornment) || null,
|
|
120
120
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingIndicator, {})
|
|
@@ -197,7 +197,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
197
197
|
}, queryOptions));
|
|
198
198
|
const options = (data == null ? void 0 : data.pages) ? data.pages.map((page) => page.options).flat() : [];
|
|
199
199
|
const handleOnInputChange = (event, value, reason) => {
|
|
200
|
-
if (reason === "clear") {
|
|
200
|
+
if (reason === "clear" || reason === "blur") {
|
|
201
201
|
setInputValue(event.target.value);
|
|
202
202
|
}
|
|
203
203
|
if (onInputChange) onInputChange(event, value, reason);
|
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,7 @@ var Autocomplete = (_a) => {
|
|
|
78
78
|
size: "small"
|
|
79
79
|
};
|
|
80
80
|
const resolvedProps = (params) => ({
|
|
81
|
-
InputProps: __spreadProps(__spreadValues(__spreadValues({},
|
|
81
|
+
InputProps: __spreadProps(__spreadValues(__spreadValues({}, params == null ? void 0 : params.InputProps), FieldProps == null ? void 0 : FieldProps.InputProps), {
|
|
82
82
|
endAdornment: props.loading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
83
83
|
(params == null ? void 0 : params.InputProps.endAdornment) || null,
|
|
84
84
|
/* @__PURE__ */ jsx(LoadingIndicator, {})
|
|
@@ -161,7 +161,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
161
161
|
}, queryOptions));
|
|
162
162
|
const options = (data == null ? void 0 : data.pages) ? data.pages.map((page) => page.options).flat() : [];
|
|
163
163
|
const handleOnInputChange = (event, value, reason) => {
|
|
164
|
-
if (reason === "clear") {
|
|
164
|
+
if (reason === "clear" || reason === "blur") {
|
|
165
165
|
setInputValue(event.target.value);
|
|
166
166
|
}
|
|
167
167
|
if (onInputChange) onInputChange(event, value, reason);
|
package/package.json
CHANGED
package/src/lib/Autocomplete.tsx
CHANGED
|
@@ -76,8 +76,8 @@ export const Autocomplete = <
|
|
|
76
76
|
|
|
77
77
|
const resolvedProps = (params: AutocompleteRenderInputParams) => ({
|
|
78
78
|
InputProps: {
|
|
79
|
-
...FieldProps?.InputProps,
|
|
80
79
|
...params?.InputProps,
|
|
80
|
+
...FieldProps?.InputProps,
|
|
81
81
|
endAdornment: props.loading ? (
|
|
82
82
|
<>
|
|
83
83
|
{params?.InputProps.endAdornment || null}
|