Skip to content

Commit

Permalink
fix slotProps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandra-c committed Dec 6, 2024
1 parent d582375 commit 5a88cc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/inputs/Tags/TagsInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { emptyString } from 'components/utils/constants'
export default function TagsInput({
onChange,
value = [],
textFieldProps,
textFieldProps: { slotProps, ...restTextFieldProps } = {},
size = 'small',
placeholder,
...other
Expand Down Expand Up @@ -58,11 +58,13 @@ export default function TagsInput({
onKeyDown={handleKeyDown}
placeholder={placeholder}
slotProps={{
...slotProps,
input: {
...slotProps?.input,
startAdornment: valueTags
}
}}
{...textFieldProps}
{...restTextFieldProps}
/>
)
}

0 comments on commit 5a88cc9

Please sign in to comment.