From f25ec01fd987beca599124cc4deff6b4980ddff6 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 2 Sep 2024 23:59:46 +0800 Subject: [PATCH] Update src/OptionList/List.tsx --- src/OptionList/List.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OptionList/List.tsx b/src/OptionList/List.tsx index 05410a53..0850b016 100644 --- a/src/OptionList/List.tsx +++ b/src/OptionList/List.tsx @@ -166,7 +166,9 @@ const RawOptionList = React.forwardRef(( // >>>>> Active Scroll React.useEffect(() => { - if (searchValue) return; + if (searchValue) { + return; + } for (let i = 0; i < activeValueCells.length; i += 1) { const cellPath = activeValueCells.slice(0, i + 1); const cellKeyPath = toPathKey(cellPath);