Skip to content

Commit

Permalink
Merge pull request #169 from ynput/develop
Browse files Browse the repository at this point in the history
fix(AssigneeSelect): className prop missing on field only mode
  • Loading branch information
Innders authored Aug 13, 2024
2 parents bb4650a + 6fdc430 commit 3cc5bf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Dropdowns/AssigneeSelect/AssigneeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const AssigneeSelect = forwardRef<DropdownRef, AssigneeSelectProps>(
selectAllKey = '__all__',
multiSelect = true,
disabledValues = [],
className,
...props
},
ref,
Expand Down Expand Up @@ -80,7 +81,7 @@ export const AssigneeSelect = forwardRef<DropdownRef, AssigneeSelectProps>(
...assigneeProps,
}

if (readOnly) return <AssigneeField {...assigneeFieldProps} />
if (readOnly) return <AssigneeField {...assigneeFieldProps} className={className} />

const isAllSelected = value.length >= options.length

Expand Down Expand Up @@ -119,6 +120,7 @@ export const AssigneeSelect = forwardRef<DropdownRef, AssigneeSelectProps>(
sortBySelected={sortBySelected}
selectAllKey={selectAllKey}
missingValueMessage={'Some users no longer exist. Click to remove.'}
className={className}
{...props}
/>
)
Expand Down

0 comments on commit 3cc5bf0

Please sign in to comment.