Minor Changes
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.