Closed antonio-osorio closed 3 years ago
I'm running into this same issue, I would prefer it to select the item at index 0, as that's what simply pressing enter makes it seem like its doing.
I think this makes sense since it matches the user's actions. Nice recommendation and thanks for the test!
@antonio-osorio any update?
Going to close this as its gone a bit stale. if someone wants to pick it up ill gladly review a PR
Hi @AlecAivazis the behavior of the Select prompt when the default value is not one of the options is a bit counter intuitive. I have added a test that shows the failure.
For a select with options "one", "two", default="invalid default" the user sees:
And if they hit enter, the resulting value is "invalid default"
What would be the preferred behavior? Thoughs: