[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

fix text cancel display bug

Nate Moore (Feb 17, 2023, 6:41 AM -0600) 83d890e4 21546d79

+7 -2
+5
.changeset/many-walls-happen.md
··· 1 + --- 2 + '@clack/prompts': patch 3 + --- 4 + 5 + Fix text cancel display bug
+2 -2
packages/prompts/src/index.ts
··· 77 77 case 'submit': 78 78 return `${title}${color.gray(S_BAR)} ${color.dim(this.value || opts.placeholder)}`; 79 79 case 'cancel': 80 - return `${title}${color.gray(S_BAR)} ${color.strikethrough(color.dim(this.value))}${ 81 - this.value.trim() ? '\n' + color.gray(S_BAR) : '' 80 + return `${title}${color.gray(S_BAR)} ${color.strikethrough(color.dim(this.value ?? ''))}${ 81 + this.value?.trim() ? '\n' + color.gray(S_BAR) : '' 82 82 }`; 83 83 default: 84 84 return `${title}${color.cyan(S_BAR)} ${value}\n${color.cyan(S_BAR_END)}\n`;