Skip to content

Commit

Permalink
Merge pull request #2930 from ActiveState/mitchell/dx-678
Browse files Browse the repository at this point in the history
Do not filter displayed choices based on what the user types.
  • Loading branch information
mitchell-as authored Dec 6, 2023
2 parents e3a9451 + 73c533f commit a64487c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ func (p *Prompt) Select(title, message string, choices []string, defaultChoice *

var response string
err := survey.AskOne(&Select{&survey.Select{
Message: formatMessage(message, !p.out.Config().Colored),
Options: choices,
Default: defChoice,
Message: formatMessage(message, !p.out.Config().Colored),
Options: choices,
Default: defChoice,
FilterFn: func(input string, choices []string) []string { return choices }, // no filter
}}, &response, nil)
if err != nil {
return "", locale.NewInputError(err.Error())
Expand Down

0 comments on commit a64487c

Please sign in to comment.