From eaa891b5dda727caad322faed924e4c38dfd0c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B9=85=E9=B9=85=E9=B9=85?= Date: Wed, 11 Oct 2023 18:17:48 +0800 Subject: [PATCH] fix: dont scrollIntoView when options length changed --- src/OptionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OptionList.tsx b/src/OptionList.tsx index abef1726..a28dc86b 100644 --- a/src/OptionList.tsx +++ b/src/OptionList.tsx @@ -146,7 +146,7 @@ const OptionList: React.ForwardRefRenderFunction = (_, r } return () => clearTimeout(timeoutId); - }, [open, searchValue, flattenOptions.length]); + }, [open, searchValue]); // ========================== Values ========================== const onSelectValue = (value: RawValueType) => {