Skip to content

.checkbox option seems doing wrong check #2

@btd

Description

@btd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions