From 3ad9dbef7f420611d3421732e7e89cfb2097564e Mon Sep 17 00:00:00 2001 From: Eunice Vassoa Date: Thu, 23 Jun 2022 11:48:16 +0200 Subject: [PATCH 1/3] updating CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89616a0..adc0756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 From 8bb8c5bfd3a4668af1b7828438bb9fb5fb21a068 Mon Sep 17 00:00:00 2001 From: Eunice Vassoa Date: Thu, 23 Jun 2022 11:48:27 +0200 Subject: [PATCH 2/3] updating README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c26a410..5ce7f03 100644 --- a/README.md +++ b/README.md @@ -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! From 4e3e1e8b45129ac77a9ae066131fb525b87b0d8c Mon Sep 17 00:00:00 2001 From: Eunice Vassoa Date: Thu, 23 Jun 2022 11:48:33 +0200 Subject: [PATCH 3/3] minor bug fix --- lib/easy_autocomplete.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/easy_autocomplete.dart b/lib/easy_autocomplete.dart index 1a5e7b7..b08bbec 100644 --- a/lib/easy_autocomplete.dart +++ b/lib/easy_autocomplete.dart @@ -199,7 +199,10 @@ class _EasyAutocompleteState extends State { void closeOverlay() { if (_hasOpenedOverlay) { _overlayEntry!.remove(); - setState(() => _hasOpenedOverlay = false); + setState(() { + _previousAsyncSearchText = ''; + _hasOpenedOverlay = false; + }); } }