We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
initialValue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment
@clack/prompts
Describe the bug
When initialValue is set, the prompts would crash with error: "TypeError: t.toLowerCase is not a function".
const result = await p.autocomplete({ message: 'Select a country', options: countries, placeholder: 'Type to search countries...', maxItems: 8, + initialValue: 'us', });
I think it's from one of these:
clack/packages/prompts/src/autocomplete.ts
Lines 24 to 27 in f90f47d
To Reproduce
https://stackblitz.com/edit/node-xdxj5xxj?file=index.js
Steps to reproduce the behavior:
pnpm install
node index.js
Expected behavior
No crash happen.
Additional Information
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Environment
@clack/prompts
Describe the bug
When
initialValue
is set, the prompts would crash with error: "TypeError: t.toLowerCase is not a function".const result = await p.autocomplete({ message: 'Select a country', options: countries, placeholder: 'Type to search countries...', maxItems: 8, + initialValue: 'us', });
I think it's from one of these:
clack/packages/prompts/src/autocomplete.ts
Lines 24 to 27 in f90f47d
To Reproduce
https://stackblitz.com/edit/node-xdxj5xxj?file=index.js
Steps to reproduce the behavior:
pnpm install
node index.js
Expected behavior
No crash happen.
Additional Information
The text was updated successfully, but these errors were encountered: