react-textarea-autosize

<textarea /> component for React which grows with content

MIT License

Downloads
10.7M
Stars
2.1K
Committers
61

Bot releases are hidden (Show)

react-textarea-autosize - v4.2.1

Published by Andarist over 7 years ago

  • 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 of element.setAttribute('style', ...) to avoid CSP issues with unsafe-inline
react-textarea-autosize - v4.2.0

Published by Andarist over 7 years ago

  • added es build, more suitable for es6 modules aware tools like rollup and webpack2
  • switched to babel's loose mode
  • fixed inputRef being passed to the underlaying element which caused unused properties warning
react-textarea-autosize - v4.1.0

Published by Andarist over 7 years ago

  • switched to using PropTypes from external package (fixed React 15.5.0 deprecation warning)
  • added new prop - inputRef which gets passed as ref callback to the underlaying element
react-textarea-autosize - v4.0.5

Published by Andarist over 7 years ago

  • decided not to support IE8 ever (previous status - PR welcomed)
  • reverted the change using '' instead of 'x' to calculate the height of empty textarea
react-textarea-autosize - v4.0.4

Published by Andarist over 7 years ago

  • fixed unused properties warning in React 15.2.0 by passing only DOM props to the underlaying element
react-textarea-autosize - v4.0.2

Published by Andarist over 7 years ago

  • passing height: 0 to the underlaying element when state was not yet set (initial render situation)
Package Rankings
Top 0.79% on Npmjs.org
Top 24.44% on Repo1.maven.org
Badges
Extracted from project README
npm version npm