Releases: Andarist/react-textarea-autosize
Releases · Andarist/react-textarea-autosize
v5.0.4
v5.0.3
v5.0.2
v5.0.1
- introduced work around Firefox bug which runs resize listeners even when other JS is running at the same moment - causing competing rerenders (due to
setState
calls in the listener) in React. More can be found here - facebook/react#6324
v5.0.0
BREAKING CHANGES
- dropped support for reading internally (for DOM measurements) prefixed
box-sizing
- dropped support for proxy (to underlaying DOM node) methods on the instance -
value
,selectionStart
,selectionEnd
setters/getters,focus
andblur
(accessible before throughref
on the component). If you need access to those please useinputRef
prop to get ref of the underlaying DOM node and use native methods on it - dropped support for the
valueLink
prop which supported usingLinkedStateMixin
which is deprecated since React 15 - dropped
rows
prop alias, please useminRows
instead (previously it was the same thing anyway)
NEW IN THE RELEASE
- passing
this
as second argument to theonHeightChange
callback - providing
rowCount
property on the instance which is the reason whythis
is passed toonHeightChange
- so therowCount
may be accessed, this is for now the only prop supported that you may access, please do not use any internal stuff - using incrementing
uid
as cache key - important when usinguseCacheForDOMMeasurements
prop, providingid
orname
to the component is no longer required for the cache to work
v4.3.2
v4.3.1
- accounting for various border widths, measuring them independently rather than just geting
border-width
- fixed IE height measurements for border-boxed elements, it seems that IE returns computed width/height for content only, while other browsers add padding and border (correctly). Behaviour can be checked here. Every browser returns
100px
, IE11 would return80px
v4.3.0
v4.2.2
v4.2.1
- fixed cursor jumps caused for controlled inputs (culprit: doubled height calculations - pre and post change)
- added safe guard check before calculating element's height for non-browser environment (i.e. during tests)
- optimized calls to
setState
, now it's called only when some change happened - applying style properties directly (
style.setProperty
) instead ofelement.setAttribute('style', ...)
to avoid CSP issues with unsafe-inline