From d02c64fcf6b35149c362a4aded7e0acc5b066aea Mon Sep 17 00:00:00 2001 From: Eunice Vassoa Date: Thu, 23 Jun 2022 11:44:00 +0200 Subject: [PATCH] Revert "correcting minor issue" This reverts commit 0dc220d9229be56425396d7d74ce83eedac0aa2d. --- lib/easy_autocomplete.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/easy_autocomplete.dart b/lib/easy_autocomplete.dart index b08bbec..1a5e7b7 100644 --- a/lib/easy_autocomplete.dart +++ b/lib/easy_autocomplete.dart @@ -199,10 +199,7 @@ class _EasyAutocompleteState extends State { void closeOverlay() { if (_hasOpenedOverlay) { _overlayEntry!.remove(); - setState(() { - _previousAsyncSearchText = ''; - _hasOpenedOverlay = false; - }); + setState(() => _hasOpenedOverlay = false); } }