Skip to content

BUG: checkbox prompt defaults do not work for value objects #787

Description

@IainSAP

Using a checkbox prompt with name/value objects is using a simple === when testing re-selection. This is insufficent for values that are objects. On the other hand list defaults use isEqual which does a proper deep equality.

Checkbox should use the same isEqual. Actually all prompts that support name/value should use isEqual when selecting defaults.

https://github.com/SAP/inquirer-gui/blob/master/packages/inquirer-gui/src/Form.vue#L363

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions