Skip to content

Commit c02ff68

Browse files
authored
Merge pull request #14 from MoeYc/fix/submit-cursor
fix: cursor missing after submit
2 parents c0ef443 + fe13c2f commit c02ff68

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/wet-oranges-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/core": patch
3+
---
4+
5+
fix cursor missing after submit

packages/core/src/prompts/prompt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export default class Prompt {
9696

9797
return new Promise<string|symbol>((resolve, reject) => {
9898
this.once('submit', () => {
99+
this.output.write(cursor.show);
99100
resolve(this.value);
100101
})
101102
this.once('cancel', () => {

0 commit comments

Comments
 (0)