fix(dashboard): Use ChipInput for option forms (#7603)
Resolves CORE-2069, CORE-2068
This commit is contained in:
committed by
GitHub
parent
1ba887f4c9
commit
3f75e207ce
@@ -19,6 +19,7 @@ type ChipInputProps = {
|
||||
allowDuplicates?: boolean
|
||||
showRemove?: boolean
|
||||
variant?: "base" | "contrast"
|
||||
placeholder?: string
|
||||
className?: string
|
||||
}
|
||||
|
||||
@@ -33,6 +34,7 @@ export const ChipInput = forwardRef<HTMLInputElement, ChipInputProps>(
|
||||
showRemove = true,
|
||||
variant = "base",
|
||||
allowDuplicates = false,
|
||||
placeholder,
|
||||
className,
|
||||
},
|
||||
ref
|
||||
@@ -178,6 +180,8 @@ export const ChipInput = forwardRef<HTMLInputElement, ChipInputProps>(
|
||||
disabled={disabled}
|
||||
name={name}
|
||||
ref={innerRef}
|
||||
placeholder={chips.length === 0 ? placeholder : undefined}
|
||||
autoComplete="off"
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user