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

.checkbox option seems doing wrong check #2

Open
btd opened this issue Jul 26, 2017 · 1 comment
Open

.checkbox option seems doing wrong check #2

btd opened this issue Jul 26, 2017 · 1 comment
Labels

Comments

@btd
Copy link

btd commented Jul 26, 2017

Hi there.

I tried to use prompt-radio with customising checkbox option (i need it to look ok on windows also).
And i noticed after i set checkbox: { off: "[ ]", on: "[x]", disabled: "X" }, i am getting errror:

TypeError: expected checkbox symbols to be an object
    at Question.set (/mnt/d/Projects/InGo/process-jobs/node_modules/prompt-checkbox/node_modules/prompt-question/index.js:231:13)

So i checked https://github.com/enquirer/prompt-question/blob/master/index.js#L230 and this line seems wrong (it should check not an object instead), is this right?

Thanks.

@jonschlinkert
Copy link
Member

Hmm, that seems like a bug. I'll look into it, thanks for the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants