Skip to content

Commit f709c84

Browse files
malwilleygeorge-sentry
authored andcommitted
fix(textarea): Use correct prop for minRows in autosized textarea (#112288)
`react-textarea-autosize` accepts `minRows`, not `rows`
1 parent 8b34990 commit f709c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/components/core/textarea/textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function TextAreaControl({
3434
...p
3535
}: TextAreaProps) {
3636
return autosize ? (
37-
<TextareaAutosize {...p} ref={ref} rows={rows} maxRows={maxRows} />
37+
<TextareaAutosize {...p} ref={ref} minRows={rows} maxRows={maxRows} />
3838
) : (
3939
<textarea ref={ref} {...p} rows={rows} />
4040
);

0 commit comments

Comments
 (0)