You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request] selected disabled options should render as selected #648
Is your feature request related to a problem? Please describe.
There is no way to express "this specific option must be selected" — an option that is always part of the answer and cannot be deselected.
Describe the solution you'd like
Add required?: boolean to Option:
constselected=awaitmultiselect({message: 'Pick your framework features',options: [{value: 'ssr',label: 'SSR',required: true},// pre-selected, cannot be deselected{value: 'ts',label: 'TypeScript'},{value: 'spa',label: 'SPA (disabled)',disabled: true},],});
changed the title [-][Request] per-option `required` for multiselect prompts[/-][+][Request] selected disabled options should render as selected[/+]on Nov 29, 2026
Activity
43081j commentedon Nov 29, 2026
i don't think we need a new option here. we just have a bug.
you should set
initialValuesto include the one you want pre-selected, and define that specific option asdisabled: true.that works today but doesn't render as "selected and disabled", which is a bug.
[-][Request] per-option `required` for multiselect prompts[/-][+][Request] selected disabled options should render as selected[/+]