Skip to content

Commit 2533180

Browse files
fix: member name in TextPrompt rendering (#465)
Co-authored-by: James Garbutt <[email protected]>
1 parent 6404dc1 commit 2533180

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cool-forks-flash.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+
Update the core README.md to reflect the internal member name change when rendering a TextPrompt (`userInputWithCursor`).

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TextPrompt, isCancel } from '@clack/core';
1111

1212
const p = new TextPrompt({
1313
render() {
14-
return `What's your name?\n${this.valueWithCursor}`;
14+
return `What's your name?\n${this.userInputWithCursor}`;
1515
},
1616
});
1717

0 commit comments

Comments
 (0)