Skip to content

Commit

Permalink
Update src/OptionList/List.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 2, 2024
1 parent 3f8ae43 commit f25ec01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OptionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((

// >>>>> 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);
Expand Down

0 comments on commit f25ec01

Please sign in to comment.