- Improved performance when appending text onto previous textarea value
- Reworked to remove use of cached (potentially stale) style values. Fixes #404
- Dropped support for Internet Explorer
- Avoid issue caused by using 'smooth' scroll-behavior
- Changed module field to point to new ESM bundle. Fixes #391, closes #393
- Add module field to package.json so autosize can be imported as an ES Module
- Revert module field to package.json, will release as major version bump
- Add module field to package.json so autosize can be imported as an ES Module
- More specific detection of when to change overflow. Merges #361.
- Minor refactor & updated build dependencies
- Changed how Autosize determines the initial height. Fixes #336.
- Fixed bug with overflow detection which degraded performance of textareas that exceed their max-width. Fixes #333.
- Fixed minor bug where the
resized
event would not fire under specific conditions when changing the overflow.
- Bubble dispatched events. Merged #319.
- Fixed Firefox issue where calling dispatchEvent on a detached element throws an error. Fixes #317.
- Fixed Chromium issue where getComputedStyle pixel value did not exactly match the style pixel value. Fixes #306.
- Removed undocumented argument, minor refactoring, more comments.
- Fixed issue with overflowing parent elements. Fixes #298.
- Used newer Event constructor, when available. Fixes #280.
- Fixed memory leak on destroy. Merged #271, fixes #270.
- Fixed bug in old versions of Firefox (1-5), fixes #246.
- Fixed scroll-bar jumpiness in iOS. Merged #261, fixes #207.
- Fixed reflowing of initial text in Chrome and Safari.
- Merged changes were discarded when building new dist files. Merged #255, Fixes #257 for real this time.
- Fixed regression from 3.0.10 that caused an error with ES5 browsers. Merged #255, Fixes #257.
- Removed data attribute as a way of tracking which elements autosize has been assigned to. fixes #254, fixes #200.
- Fixed issue with assigning autosize to detached nodes. Merged #253, Fixes #234.
- Fixed the
autosize:resized
event not being triggered when the overflow changes. Fixes #244.
- Fixed jumpy behavior in Windows 8.1 mobile. Fixes #239.
- Renamed 'dest' folder to 'dist' to follow common conventions.
- Do nothing in Node.js environment.
- Added options object for indicating if the script should set the overflowX and overflowY. The default behavior lets the script control the overflows, which will normalize the appearance between browsers. Fixes #220.
- Avoided adjusting the height for hidden textarea elements. Fixes #155.
- Reworked to respect max-height of any unit-type. Fixes #191.
- Fixed the destroy event so that it removes its own event handler. Fixes #218.
-
Added new methods for updating and destroying:
- autosize.update(elements)
- autosize.destroy(elements)
-
Renamed custom events as to not use jQuery's custom events namespace:
- autosize.resized renamed to autosize:resized
- autosize.update renamed to autosize:update
- autosize.destroy renamed to autosize:destroy
- Version bump for NPM publishing purposes
- Smaller, simpler code-base
- New API. Example usage:
autosize(document.querySelectorAll(textarea));
- Dropped jQuery dependency
- Dropped IE7-IE8 support
- Dropped optional parameters
- Closes #98, closes #106, closes #123, fixes #129, fixes #132, fixes #139, closes #140, closes #166, closes #168, closes #192, closes #193, closes #197