From e4f9f9c40f3260c5d860e7848d8173e6f44f455d Mon Sep 17 00:00:00 2001 From: Masoud Amjadi Date: Thu, 21 Sep 2023 17:59:34 -0400 Subject: [PATCH] docs(autocomplete): adding comments for context --- packages/components/src/core/Autocomplete/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/components/src/core/Autocomplete/index.tsx b/packages/components/src/core/Autocomplete/index.tsx index 3a6d726c2..4145d5fa4 100644 --- a/packages/components/src/core/Autocomplete/index.tsx +++ b/packages/components/src/core/Autocomplete/index.tsx @@ -108,6 +108,10 @@ const Autocomplete = < const [inputValue, setInputValue] = useState(""); + /** + * (masoudmanson): Using a custom Popper or Paper with the Autocomplete + * without a useCalback results in scroll jumps while selecting an option! + */ const defaultPopperComponent = useCallback((popperProps: PopperProps) => { return (