Skip to content

Commit f25ec01

Browse files
authored
Update src/OptionList/List.tsx
1 parent 3f8ae43 commit f25ec01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OptionList/List.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((
166166

167167
// >>>>> Active Scroll
168168
React.useEffect(() => {
169-
if (searchValue) return;
169+
if (searchValue) {
170+
return;
171+
}
170172
for (let i = 0; i < activeValueCells.length; i += 1) {
171173
const cellPath = activeValueCells.slice(0, i + 1);
172174
const cellKeyPath = toPathKey(cellPath);

0 commit comments

Comments
 (0)