react-textarea-autosize
Advanced tools
Changelog
8.5.0
05b014a
Thanks @Andarist! - Compatibility with node's ESM has been improved. import TextareaAutosize from 'react-textarea-autosize';
was always meant to provide you the default export of this package (the exported component) and now node should load it this way.05b014a
Thanks @Andarist! - SSR environments should now be able to pick smaller bundles through package.json#exports
.05b014a
Thanks @Andarist! - This package no longer depends on process.env.NODE_ENV
. To get dev-only warnings you have to configure your bundler/runtime to use the development
condition.d33b120
Thanks @ArnaudRinquin! - Add a guard against potentially missing documents.fonts
Changelog
8.4.1
19aead9
Thanks @knownasilya! - Workaround for Firefox scrollHeight
bug affecting textarea's height on a dynamic toggle2301195
Thanks @ArnaudRinquin! - Support automatic resizing when a custom fonts ends up loadingChangelog
8.4.0
#354 41d10b2
Thanks @Andarist! - exports
field has been added to the package.json
manifest.
Thanks to this, the package now includes a worker
condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers.
Changelog
8.3.4
9124bbf
Thanks @rebelliard! - Add React 18 to the allowed peer dependency range.Changelog
8.3.3
0d7ac21
#326 Thanks @karlingen! - Account for word-break
property when calculating the height.6336448
#327 Thanks @circlingthesun! - Fixed the tabindex
attribute name that is set on the hidden textarea used for height calculations.Changelog
8.3.1
49d7d04
#305 Thanks @mxschmitt! - Moved internal 'resize'
listener to the layout effect since React 17 calls cleanups of regular effects asynchronously. This ensures that we don't ever try to access the already unmounted ref in our listener.