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:
ilkin-overleaf 2024-07-18 16:46:26 +03:00 committed by Copybot
parent 92947b361f
commit ac0265f4e2
2 changed files with 2 additions and 7 deletions

View file

@ -8,12 +8,7 @@ type FormControlProps = BS3FormControlProps & {
append?: React.ReactNode append?: React.ReactNode
} }
function FormControl({ function FormControl({ prepend, append, ...props }: FormControlProps) {
prepend,
append,
className,
...props
}: FormControlProps) {
return ( return (
<> <>
{prepend && <div className="form-control-feedback-left">{prepend}</div>} {prepend && <div className="form-control-feedback-left">{prepend}</div>}

View file

@ -36,7 +36,7 @@ const FormControl = forwardRef<HTMLInputElement, OLFormControlProps>(
) )
} }
return <Form.Control {...props} /> return <Form.Control className={className} {...props} />
} }
) )
FormControl.displayName = 'FormControl' FormControl.displayName = 'FormControl'