mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #19471 from overleaf/ii-inputs-fix
[web] Fix inputs to accept custom class names GitOrigin-RevId: ebef429b5de961b873beccb32874fa8bf815dfb6
This commit is contained in:
parent
92947b361f
commit
ac0265f4e2
2 changed files with 2 additions and 7 deletions
|
@ -8,12 +8,7 @@ type FormControlProps = BS3FormControlProps & {
|
|||
append?: React.ReactNode
|
||||
}
|
||||
|
||||
function FormControl({
|
||||
prepend,
|
||||
append,
|
||||
className,
|
||||
...props
|
||||
}: FormControlProps) {
|
||||
function FormControl({ prepend, append, ...props }: FormControlProps) {
|
||||
return (
|
||||
<>
|
||||
{prepend && <div className="form-control-feedback-left">{prepend}</div>}
|
||||
|
|
|
@ -36,7 +36,7 @@ const FormControl = forwardRef<HTMLInputElement, OLFormControlProps>(
|
|||
)
|
||||
}
|
||||
|
||||
return <Form.Control {...props} />
|
||||
return <Form.Control className={className} {...props} />
|
||||
}
|
||||
)
|
||||
FormControl.displayName = 'FormControl'
|
||||
|
|
Loading…
Reference in a new issue