Skip to content

Commit c0ef443

Browse files
committed
update select logic
1 parent 3be210d commit c0ef443

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/prompts/select.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default class SelectPrompt<T extends { value: any }> extends Prompt {
3333
case 'down':
3434
case 'right':
3535
this.cursor = this.cursor === this.options.length - 1 ? 0 : this.cursor + 1;
36+
break;
3637
}
3738
this.changeValue();
3839
})

0 commit comments

Comments
 (0)