Skip to content
New issue

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

Module behaving like checkbox instead of radio. #5

Open
jpmedley opened this issue Jan 7, 2019 · 0 comments
Open

Module behaving like checkbox instead of radio. #5

jpmedley opened this issue Jan 7, 2019 · 0 comments

Comments

@jpmedley
Copy link

jpmedley commented Jan 7, 2019

Your example gif shows this module only allowing one option to be selected at a time (which is how a radio button should work). It doesn't do it by default and I can't find an option to turn it on. Here's an abbreviated version of my code:

let enq = new Enquirer();
enq.register('radio', cb);
enq.question('idlFile', 'Which interface do you want to work with?', {
  type: 'radio',
  choices: names
});
let answers = await enq.prompt('idlFile');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant