From 2a9888be3d905dc97fa2c402d3c590549603dede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= <4710635+ellatrix@users.noreply.github.com> Date: Thu, 15 Jul 2021 15:05:25 +0300 Subject: [PATCH] Autocomplete: reset state for empty text (#33450) --- packages/components/src/autocomplete/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/src/autocomplete/index.js b/packages/components/src/autocomplete/index.js index 95094f261cff9..ee07dea9ef771 100644 --- a/packages/components/src/autocomplete/index.js +++ b/packages/components/src/autocomplete/index.js @@ -443,6 +443,7 @@ function useAutocomplete( { useEffect( () => { if ( ! textContent ) { + reset(); return; }