diff --git a/src/OptionList/List.tsx b/src/OptionList/List.tsx index 05410a5..0850b01 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);