Skip to content

Commit a5b69be

Browse files
committed
fix: ensure asset description textarea is connected to react-hook-form
1 parent 476a413 commit a5b69be

File tree

1 file changed

+2
-1
lines changed
  • src/components/FormFieldInputTextarea

1 file changed

+2
-1
lines changed

src/components/FormFieldInputTextarea/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Props = {
1717
type Ref = HTMLTextAreaElement
1818

1919
const FormFieldInputTextarea = forwardRef<Ref, Props>((props: Props, ref) => {
20-
const {description, disabled, error, label, name, placeholder, rows, value} = props
20+
const {description, disabled, error, label, name, placeholder, rows, value, ...rest} = props
2121

2222
return (
2323
<Box>
@@ -26,6 +26,7 @@ const FormFieldInputTextarea = forwardRef<Ref, Props>((props: Props, ref) => {
2626

2727
{/* Input */}
2828
<TextArea
29+
{...rest}
2930
autoComplete="off"
3031
defaultValue={value}
3132
disabled={disabled}

0 commit comments

Comments
 (0)