Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from 4inka/bug_fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
4inka authored Jun 23, 2022
2 parents d02c64f + 4e3e1e8 commit e853f26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Added `validator` parameter. Now you can validate the autocomplete field inside a form
* Added `progressIndicatorBuilder` parameter. Now you can add a custom progress indicator to be used in async suggestions fetch

### Fixed
* Fixed progress indicator appearing when regaining focus on element

## 1.5.0 - [13-02-2022]

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,6 @@ If you encounter any issue you or want to leave a suggestion you can do it by fi
## Contributions
Here's the list of our awesome contributors:
- [Prateek Sunal](https://github.com/prateekmedia)
- [Miklos Zsido](https://github.com/zsmiklos)

### Thank you for the support!
5 changes: 4 additions & 1 deletion lib/easy_autocomplete.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ class _EasyAutocompleteState extends State<EasyAutocomplete> {
void closeOverlay() {
if (_hasOpenedOverlay) {
_overlayEntry!.remove();
setState(() => _hasOpenedOverlay = false);
setState(() {
_previousAsyncSearchText = '';
_hasOpenedOverlay = false;
});
}
}

Expand Down

0 comments on commit e853f26

Please sign in to comment.