Skip to content

[Bug] Issues with autocompleteMultiselect (hint and typings) #361

@ajitsingh-tf

Description

@ajitsingh-tf

Environment

  • OS: macOS
  • Node Version: v22.17.0
  • Package: @clack/prompts
  • Package Version: 1.0.0-alpha.1

Describe the bug

Issue no. 1

const instructions = [
`${color.dim('↑/↓')} to navigate`,
`${color.dim('Space:')} select`,
`${color.dim('Enter:')} confirm`,
`${color.dim('Type:')} to search`,
];

The hint says that one can use Space to select. However, when one has typed something to narrow the list, then space gets eaten up by filter's input and is not used to select an item. What I found is using Tab key works on both the cases.

Issue no. 2

return prompt.prompt() as Promise<Value | symbol>;

An autocompleteMultiselect returns a list of values, while right now we are returning just Value here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions