Skip to content

Commit

Permalink
Fixes #36949 - Clear nav search doesn't clear results
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Nov 30, 2023
1 parent 7e63755 commit b5cce09
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const NavigationSearch = ({ items, clickAndNavigate }) => {

const onClear = () => {
setValue('');
setAutocompleteOptions(navLinksArray.slice(0, 10).map(menuNav));
};

const onChange = newValue => {
Expand Down

0 comments on commit b5cce09

Please sign in to comment.