Skip to content

Commit

Permalink
Autocomplete: reset state for empty text (#33450)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and youknowriad committed Jul 15, 2021
1 parent b7a3f1f commit 2a9888b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/autocomplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ function useAutocomplete( {

useEffect( () => {
if ( ! textContent ) {
reset();
return;
}

Expand Down

0 comments on commit 2a9888b

Please sign in to comment.