Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork273
Open
Description
In CFormSelect.tsx it refers to "selected" booleanL
Line 7-12
type Option = { disabled?: boolean label?: string selected?: boolean value?: string}However lines 101-115 the options builder misses the reference and usage of this prop.
Suggest the following:
{options ? options.map((option, index) => { return ( <option {...(typeof option === 'object' && option.disabled && { disabled: option.disabled })} {...(typeof option === 'object' && option.selected && { selected: option.selected })} {...(typeof option === 'object' && option.value !== undefined && { value: option.value })} key={index} > {typeof option === 'string' ? option : option.label} </option> ) }) : children}Metadata
Metadata
Assignees
Labels
No labels