We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The multiselect only shows the hint on the first item in the options, as shown below:
◆ Select additional tools. │ ◼ Prettier (recommended) │ ◼ ESLint │ ◻ Stylelint │ ◻ GitHub Action └
◆ Select additional tools. │ ◻ Prettier │ ◼ ESLint │ ◻ Stylelint │ ◼ GitHub Action └
To Reproduce
Basically taken from your examples in this repo; see https://stackblitz.com/edit/node-kwuxhe
Steps to reproduce the behavior:
npm init -y
npm install @clack/prompts --save
"type": "module"
package.json
#!/usr/bin/env node import * as p from '@clack/prompts'; async function main() { const project = await p.group({ scenario1: () => p.multiselect({ message: 'Scenario 1.', initialValues: ['prettier', 'eslint'], options: [ { value: 'prettier', label: 'Prettier', hint: 'recommended' }, { value: 'eslint', label: 'ESLint', hint: 'recommended' }, { value: 'stylelint', label: 'Stylelint' }, { value: 'gh-action', label: 'GitHub Action' }, ], }), scenario2: () => p.multiselect({ message: 'Scenario 2', initialValues: ['eslint', 'gh-action'], options: [ { value: 'prettier', label: 'Prettier' }, { value: 'eslint', label: 'ESLint', hint: 'recommended' }, { value: 'stylelint', label: 'Stylelint' }, { value: 'gh-action', label: 'GitHub Action', hint: 'recommended' }, ], }), }); } main().catch(console.log);
node ./index.js
Expected behavior
I would expect the output from the prompt to be:
◆ Scenario 1. │ ◼ Prettier (recommended) │ ◼ ESLint (recommended) │ ◻ Stylelint │ ◻ GitHub Action └ ◆ Scenario 2. │ ◻ Prettier │ ◼ ESLint (recommended) │ ◻ Stylelint │ ◼ GitHub Action (recommended) └
The text was updated successfully, but these errors were encountered:
Hey, thanks for opening an issue! I'm finally working through the backlog here.
Seems like this should be a simple enough bug fix, I'll try to get a fix into the next patch or minor release.
Sorry, something went wrong.
No branches or pull requests
Environment
Describe the bug
The multiselect only shows the hint on the first item in the options, as shown below:
To Reproduce
Basically taken from your examples in this repo; see https://stackblitz.com/edit/node-kwuxhe
Steps to reproduce the behavior:
npm init -y
npm install @clack/prompts --save
"type": "module"
to thepackage.json
node ./index.js
Expected behavior
I would expect the output from the prompt to be:
The text was updated successfully, but these errors were encountered: