From 9d3d77c674670c6d18f23e39b8e06c86a9f8c877 Mon Sep 17 00:00:00 2001 From: acyza <101238421+acyza@users.noreply.github.com> Date: Tue, 14 Feb 2023 23:51:32 +0800 Subject: [PATCH] fix(components): [input] fix textarea autosize (#11376) * fix(components): [input] fix textarea autosize --- packages/components/input/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/input/src/utils.ts b/packages/components/input/src/utils.ts index ebde3eab54..bb047d5c83 100644 --- a/packages/components/input/src/utils.ts +++ b/packages/components/input/src/utils.ts @@ -1,11 +1,11 @@ -import { isNumber } from '@element-plus/utils' +import { isFirefox, isNumber } from '@element-plus/utils' let hiddenTextarea: HTMLTextAreaElement | undefined = undefined const HIDDEN_STYLE = ` height:0 !important; visibility:hidden !important; - overflow:hidden !important; + ${isFirefox() ? '' : 'overflow:hidden !important;'} position:absolute !important; z-index:-1000 !important; top:0 !important;