Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: marmelab/react-admin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 71a05ac14b41e98a17daf715dcbf181de4cad260
Choose a base ref
..
head repository: marmelab/react-admin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 078c4e47a18a5e755d824dedf35174037ac05da8
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/AutocompleteInput.tsx
Original file line number Diff line number Diff line change
@@ -333,7 +333,7 @@ export const AutocompleteInput = (props: AutocompleteInputProps) => {

useEffect(() => {
inputEl.current.blur();
}, [input.value, handleFilterChange, inputText]);
}, [input.value]);

// This function ensures that the suggestion list stay aligned to the
// input element even if it moves (because user scrolled for example)