@availity/mui-autocomplete 1.0.3-beta.2 → 1.0.4
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 +10 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/lib/AsyncAutocomplete.tsx +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.4](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.3...@availity/mui-autocomplete@1.0.4) (2025-03-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-autocomplete:** reset value on blur to account for search ([a4af887](https://github.com/Availity/element/commit/a4af88733fd336282e002d3f2aa343fe105fc388))
|
|
11
|
+
* **mui-autocomplete:** reset value on blur to account for search ([3ba4edd](https://github.com/Availity/element/commit/3ba4eddde9cb36ef5cd29c28c1030ab8fa6f0bac))
|
|
12
|
+
* **mui-autocomplete:** reset value on blur to account for search ([1998342](https://github.com/Availity/element/commit/199834225ab2f93f9ab0c81e1c66fa0f70d248b7))
|
|
13
|
+
* **mui-autocomplete:** reset value on blur when filter returns no results ([29e3d8f](https://github.com/Availity/element/commit/29e3d8f9605d7d1b8886187dfe27557e5e830427))
|
|
14
|
+
|
|
5
15
|
## [1.0.3-beta.2](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.3-beta.1...@availity/mui-autocomplete@1.0.3-beta.2) (2025-03-06)
|
|
6
16
|
|
|
7
17
|
|
package/dist/index.js
CHANGED
|
@@ -200,7 +200,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
200
200
|
if (reason === "clear") {
|
|
201
201
|
setInputValue(event.target.value);
|
|
202
202
|
} else if (reason === "blur") {
|
|
203
|
-
setInputValue(value
|
|
203
|
+
setInputValue(value);
|
|
204
204
|
}
|
|
205
205
|
if (onInputChange) onInputChange(event, value, reason);
|
|
206
206
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -164,7 +164,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
164
164
|
if (reason === "clear") {
|
|
165
165
|
setInputValue(event.target.value);
|
|
166
166
|
} else if (reason === "blur") {
|
|
167
|
-
setInputValue(value
|
|
167
|
+
setInputValue(value);
|
|
168
168
|
}
|
|
169
169
|
if (onInputChange) onInputChange(event, value, reason);
|
|
170
170
|
};
|
package/package.json
CHANGED
|
@@ -35,8 +35,6 @@ export interface AsyncAutocompleteProps<
|
|
|
35
35
|
debounceTimeout?: number;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const shouldSetInputValue = (reason: string) => ['blur', 'clear'].includes(reason);
|
|
39
|
-
|
|
40
38
|
export const AsyncAutocomplete = <
|
|
41
39
|
Option,
|
|
42
40
|
Multiple extends boolean | undefined = false,
|
|
@@ -83,7 +81,7 @@ export const AsyncAutocomplete = <
|
|
|
83
81
|
if (reason === 'clear') {
|
|
84
82
|
setInputValue(event.target.value);
|
|
85
83
|
} else if (reason === 'blur') {
|
|
86
|
-
setInputValue(value
|
|
84
|
+
setInputValue(value);
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
if (onInputChange) onInputChange(event, value, reason);
|