Skip to content

Commit

Permalink
Update packages/ra-ui-materialui/src/input/AutocompleteArrayInput.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Gildas Garcia <1122076+djhi@users.noreply.github.com>
  • Loading branch information
helenwilliamson and djhi authored Aug 4, 2020
1 parent 45bda72 commit 1f4a64b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const AutocompleteArrayInput: FunctionComponent<
// would have to first clear the input before seeing any other choices
useEffect(() => {
handleFilterChange('');
}, [values.length, handleFilterChange]);
}, [values.join(','), handleFilterChange]);

const handleKeyDown = useCallback(
(event: React.KeyboardEvent) => {
Expand Down

0 comments on commit 1f4a64b

Please sign in to comment.