Skip to content

Commit 5ab8359

Browse files
committed
fix(ui): fix textarea minHeight
1 parent 8bb5d0f commit 5ab8359

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/ui/src/components/textarea/Textarea.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Textarea(props: DTextareaProps, ref: React.ForwardedRef<DTextareaRef>):
7474
const heightStyle = (() => {
7575
let overflow: 'hidden' | undefined;
7676
let height: number | undefined;
77-
let minHeight: number | undefined;
77+
let minHeight: number = lineHeight + 8;
7878
let maxHeight: number | undefined;
7979

8080
if (!isUndefined(dRows)) {
@@ -118,7 +118,6 @@ function Textarea(props: DTextareaProps, ref: React.ForwardedRef<DTextareaRef>):
118118
...restProps.style,
119119
...heightStyle,
120120
lineHeight: `${lineHeight}px`,
121-
minHeight: `${lineHeight + 8}px`,
122121
resize: resizable ? undefined : 'none',
123122
}}
124123
value={value}

0 commit comments

Comments
 (0)