Skip to content

Commit

Permalink
fix: filtered dropdown items by display value instead of event target
Browse files Browse the repository at this point in the history
  • Loading branch information
cintnguyen committed Aug 15, 2023
1 parent f5fb6c9 commit 28d5ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/FormAutosuggest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function FormAutosuggest({
};

if (isMenuClosed) {
newState.dropDownItems = getItems(e.target.value);
newState.dropDownItems = getItems(state.displayValue);
newState.errorMessage = '';
}

Expand Down

0 comments on commit 28d5ea7

Please sign in to comment.