react-textarea-autosize v8.1.0 Release Notes
Release Date: 2020-06-24 // almost 4 years ago-
Minor Changes
- ๐
722e10a
#278 Thanks @emdotem! - Set inline style'sheight
property with the"important"
priority.
Patch Changes
db872f0
Thanks @Andarist! -TextareaAutosizeProps
are now based onReact.TextareaHTMLAttributes<HTMLTextAreaElement>
instead ofJSX.IntrinsicElements['textarea']
. The latter one includes a type forref
attribute and it being included as part ofTextareaAutosizeProps
has caused problems when usingTextareaAutosizeProps
to declare wrapper components. This is also more semantically correct asref
shouldn't be a part ofprops
. It's rather accepted by a particular JSX element and in case of thereact-textarea-autosize
this is the type of the exported component which isReact.ForwardRefExoticComponent<TextareaAutosizeProps>
(a result ofReact.forwardRef
call).๐
61ca826
Thanks @Andarist! -maxHeight
andminHeight
has been disallowed as part ofTextareaAutosizeProps['style']
. The intention to do that was there since the v8 release but it was not implemented correctly and allowed those to slip into the mentioned type. - ๐