Skip to content

Commit d9f86eb

Browse files
committed
fix: change find cursor to use +/- 1
1 parent df21506 commit d9f86eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function findCursor<T extends { disabled?: boolean }>(
88
const clampedCursor = newCursor < 0 ? maxCursor : newCursor > maxCursor ? 0 : newCursor;
99
const newOption = options[clampedCursor];
1010
if (newOption.disabled) {
11-
return findCursor(clampedCursor, delta + (delta < 0 ? -1 : 1), options);
11+
return findCursor(clampedCursor, (delta < 0 ? -1 : 1), options);
1212
}
1313
return clampedCursor;
1414
}

0 commit comments

Comments
 (0)