Check if hidden textarea is attached to document before using it for calculations.
Check if hidden textarea is attached to document before using it for calculations.

andreypopp/react-textarea-autosize,andreypopp/react-textarea-autosize,andreypopp/react-textarea-autosize