Skip to content

Commit 3ab7ffd

Browse files
authored
Merge pull request #448 from iamjono/main
Add Options Selected support
2 parents 58ba804 + 039f611 commit 3ab7ffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/coreui-react/src/components/form/CFormSelect.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ export const CFormSelect = forwardRef<HTMLSelectElement, CFormSelectProps>(
104104
<option
105105
{...(typeof option === 'object' &&
106106
option.disabled && { disabled: option.disabled })}
107+
{...(typeof option === 'object' &&
108+
option.selected && { selected: option.selected })}
107109
{...(typeof option === 'object' &&
108110
option.value !== undefined && { value: option.value })}
109111
key={index}

0 commit comments

Comments
 (0)