const HIDDEN_TEXTAREA_STYLE = { 'min-height' : '0' , 'max-height' : 'none' , height : '0' , visibility : 'hidden' , overflow : 'hidden' , position : 'absolute' , 'z-index' : '-1000' , top : '0' , right : '0' } as const ; const forceHiddenStyles = ( node ) => { Object . keys ( HIDDEN_TEXTAREA_STYLE ) . forEach ( ( key ) => { node . style . setProperty ( key , HIDDEN_TEXTAREA_STYLE [ key as keyof typeof HIDDEN_TEXTAREA_STYLE ] , 'important' ) ; } ) ; } ; export default forceHiddenStyles ;