- added;
extraWidth
prop allows you to customise how much width is added to the detected width - fixed; SSR support is more robust, thanks Ivo Bathke
- fixed;
window
reference is now guarded for SSR support, thanks Wout Mertens
- fixed;
props.id
was overriding the internalinputId
on the input element, but not being used in the stylesheet - fixed; IE stylesheet is now only injected when IE is detected in navigator.userAgent
- fixed; inputId wasn't being applied correctly, thanks Jacco Flenter
- added; new
injectStyles
prop controls whether the IE stylesheet it injected - improved; allow override of
boxSizing
andwidth
styles viainputStyles
, thanks Mike Fanger - improved; propTypes are now stripped from the production build, thanks jochenberger
- fixed; peer dependencies for
prop-types
- fixed; converted to es6 Class and removed
create-react-class
- changed; default export is now an es6 module
As of 2.0.0 this package exports an es6 module in the main entry
(/lib/AutoSizeInput.js
). If you are in an older environment, you'll need to
refer to the .default
export:
var AutoSizeInput = require('react-input-autosize').default;
Aside from this, the new version doesn't change any public API.
- added;
inputRef
prop (function, passed the reference to the input node) - fixed; resize issues in IE11, thanks Constantine
- fixed;
copyInputStyles()
never running, thanks Michael Elsdörfer