From a8046846662be94b64f6d0c10f84beefeaec0644 Mon Sep 17 00:00:00 2001 From: Denis Vershkov Date: Tue, 28 Nov 2023 23:18:40 +0100 Subject: [PATCH] fix(Select): add onLoadMore to the list of dependencies to avoid closures (#1168) --- src/components/Select/components/SelectList/SelectList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Select/components/SelectList/SelectList.tsx b/src/components/Select/components/SelectList/SelectList.tsx index fbc28935b4..00c353cda0 100644 --- a/src/components/Select/components/SelectList/SelectList.tsx +++ b/src/components/Select/components/SelectList/SelectList.tsx @@ -126,7 +126,7 @@ export const SelectList = React.forwardRef, SelectListProps> /> ); }, - [renderOption, renderOptionGroup, value, multiple, getItemHeight], + [renderOption, renderOptionGroup, value, multiple, getItemHeight, onLoadMore], ); return (