mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02: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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user