Skip to content

Commit

Permalink
remove redundant onChange_internal() in updateValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiramTadepalli committed Nov 20, 2024
1 parent d50301c commit 99ac32e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/common/SearchBar/searchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const SearchBar = ({
function updateValue(newValue: SearchQuery[]) {
if (newValue.length) setErrorTooltip(false); //close the tooltip if there is at least 1 valid search term
setValue(newValue);
onChange_internal(newValue);
onSelect_internal(newValue); // clicking enter to select a autocomplete suggestion triggers a new search (it also 'Enters' for the searchbar)
}

Expand Down

0 comments on commit 99ac32e

Please sign in to comment.