React Expanding Textarea Versions Save

React textarea component to automatically expand and contract your textareas.

v2.3.6

1 year ago

[2.3.6] - 2022-05-24

Changed

  • Updated tslib compat to be ^2.4.0

Fixed

  • Support for React 18
  • Updated react-with-forwarded-ref to solve legacy peer deps issue

v2.3.5

2 years ago

[2.3.5] - 2022-03-02

Fixed

v2.3.4

2 years ago

[2.3.4] - 2022-01-03

Changed

  • "Use useLayoutEffect instead of useEffect" (#72)

Fixed

  • "Textarea does not automatically recalculate size if it's parent container changes size" (#71). This adds a tiny dependency on fast-shallow-equal and pairs it with a custom hook to be able to detect shallow changes to a style object if it gets passed. We also are now resizing using a ResizeObserver, if it's supported, as well as if a provided className changes.

v2.3.3

2 years ago

[2.3.3] - 2021-10-28

Fixed

  • Fix legacy peer deps issue

v2.3.2

2 years ago

Fixed

  • Fix: use ChangeEvent over FormEvent (issue #61)

v2.3.1

3 years ago

[2.3.1] - 2021-01-05

Fixed

  • "Force a resize if the provided value is changed" (PR #58 from @mat-sz)

v2.3.0

3 years ago

[2.3.0] - 2020-12-08

Added

  • can now pass a callback-style ref instead of only the createRef or useRef variant object that has a current property; allows for tools like react-hook-form to work with this project (#52)

Changed

  • patch upgrade to react-with-forwarded-ref

v2.2.4

3 years ago

[2.2.4] - 2020-12-03

Changed

  • simplified ref logic on textarea element
  • patch upgrade to ts-lib

v2.2.0

4 years ago

[2.2.0] - 2020-03-14

Added

  • typescript support

Changed

  • license from ISC to BSD-3

Fixed

  • issue where line-height is normal and calculation breaks by falling back to fontSize * 1.2
  • upgrades to fix vulnerabilities

v2.1.2

4 years ago

[2.1.2] - 2020-02-04

Added

  • Commonjs react-expanding-textarea.min.js build
  • UMD react-expanding-textarea.min.js build

Fixed

  • auto-adjusting issue in firefox (#33)

Changed

  • changed browser field value in package.json to point to dist/umd/react-expanding-textarea.min.js suffix