@availity/mui-autocomplete 1.0.3-beta.0 → 1.0.3-beta.1
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 +7 -0
- package/package.json +1 -1
- package/src/lib/AsyncAutocomplete.tsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.0.3-beta.1](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.3-beta.0...@availity/mui-autocomplete@1.0.3-beta.1) (2025-03-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **mui-autocomplete:** reset value on blur to account for search ([1998342](https://github.com/Availity/element/commit/199834225ab2f93f9ab0c81e1c66fa0f70d248b7))
|
|
11
|
+
|
|
5
12
|
## [1.0.3-beta.0](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.0.2...@availity/mui-autocomplete@1.0.3-beta.0) (2025-03-06)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -80,8 +80,10 @@ export const AsyncAutocomplete = <
|
|
|
80
80
|
value: string,
|
|
81
81
|
reason: AutocompleteInputChangeReason
|
|
82
82
|
) => {
|
|
83
|
-
if (
|
|
83
|
+
if (reason === 'clear') {
|
|
84
84
|
setInputValue(event.target.value);
|
|
85
|
+
} else if (reason === 'blur') {
|
|
86
|
+
setInputValue(value);
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
if (onInputChange) onInputChange(event, value, reason);
|