mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 19:58:09 +08:00
fix(components): [input] fix textarea autosize (#11376)
* fix(components): [input] fix textarea autosize
This commit is contained in:
parent
a6c7e44f48
commit
9d3d77c674
@ -1,11 +1,11 @@
|
|||||||
import { isNumber } from '@element-plus/utils'
|
import { isFirefox, isNumber } from '@element-plus/utils'
|
||||||
|
|
||||||
let hiddenTextarea: HTMLTextAreaElement | undefined = undefined
|
let hiddenTextarea: HTMLTextAreaElement | undefined = undefined
|
||||||
|
|
||||||
const HIDDEN_STYLE = `
|
const HIDDEN_STYLE = `
|
||||||
height:0 !important;
|
height:0 !important;
|
||||||
visibility:hidden !important;
|
visibility:hidden !important;
|
||||||
overflow:hidden !important;
|
${isFirefox() ? '' : 'overflow:hidden !important;'}
|
||||||
position:absolute !important;
|
position:absolute !important;
|
||||||
z-index:-1000 !important;
|
z-index:-1000 !important;
|
||||||
top:0 !important;
|
top:0 !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user