fix(components): [input] fix textarea autosize (#11376)

* fix(components): [input] fix textarea autosize
This commit is contained in:
acyza 2023-02-14 23:51:32 +08:00 committed by GitHub
parent a6c7e44f48
commit 9d3d77c674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;