Skip to content

Commit

Permalink
docs(autocomplete): adding comments for context
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Sep 21, 2023
1 parent bb64b29 commit e4f9f9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/core/Autocomplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Popper
Expand Down

0 comments on commit e4f9f9c

Please sign in to comment.