Skip to content

Commit

Permalink
[Autocomplete] Add missing 'clear' to onInputChange typing (#19286)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvestergaard authored and oliviertassinari committed Jan 18, 2020
1 parent d165216 commit a0abfca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ 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 a0abfca

Please sign in to comment.