Skip to content

Commit

Permalink
Add missing 'clear' reason to useAutocomplete.onInputChange typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvestergaard committed Jan 18, 2020
1 parent 2373c22 commit 8ad0cea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export interface UseAutocompleteCommonProps<T> {
* @param {string} value The new value of the text input.
* @param {string} reason Can be: "input" (user input), "reset" (programmatic change), `"clear"`.
*/
onInputChange?: (event: React.ChangeEvent<{}>, value: string, reason: 'input' | 'reset') => void;
onInputChange?: (event: React.ChangeEvent<{}>, value: string, reason: 'input' | 'reset' | 'clear') => void;
/**
* Callback fired when the popup requests to be opened.
* Use in controlled mode (see open).
Expand Down

0 comments on commit 8ad0cea

Please sign in to comment.