10.11.2023.
Added
- Added prop to disable
display: none
when height is set to zero #16.
11.07.2022.
Fixed
- Added
"type": "module"
to the package.json #143 and hopefully fixed all import/require shenanigans.
10.07.2022.
Added
- Added "ref" and "contentRef" props.
- Added
<AutoHeight>
example.
Fixed
- Removed two
package.json
files to resolve issue with Webpack Module Federation #140
05.07.2022.
Fixed
- Added version to two
package.json
files to resolve issue with Webpack Module Federation #140
21.02.2022.
Fixed
- Replaced
__rest
shim to avoid rollup warnings #136
15.11.2022.
Changed
- Dropped
classnames
dependency, thanks Davey #135
15.11.2022.
Changed
- TypeScript definitions are now exported.
19.06.2022.
Fixed
- Fixed #129 by swapping ESM module target from
esnext
toES2015
(akaes6
).
31.05.2022.
Changed
- Rewritten to hooks
- Switched to TypeScript
- Callback names changed
onAnimationStart
->onHeightAnimationStart
onAnimationEnd
->onHeightAnimationEnd
- Switched back to a short timeout instead of requestAnimationFrame for starting the animation
12.04.2022.
Added
- Added check for
prefers-reduced-motion
and disabled animations if it is set totrue
- #124
12.04.2022.
Fixed
- Fixed component not working with React 18 and StrictMode - #123
01.08.2020.
Added
- Added "id" and "aria-hidden" props.
- Added section about accessibility in the readme.
15.07.2020.
Added
- Added "engines" to
package.json
- #91
18.04.2020.
Updated
- Updated the readme with the specific flex box usecase - #89
23.12.2019. and 17.01.2020.
Fixed
- Fixed TS types - #88
09.11.2019.
Fixed
- Fixed TS types to include
HTMLAttributes<HTMLDivElement>
#86
08.10.2019.
Fixed
- Request animation frame is now cleared on unmount
18.06.2019.
Fixed
- Reverted back changes, which led to a broken build.
17.06.2019.
Fixed
- Package now works as a ESM module #73.
16.05.2019.
Fixed
- Improved prop types for
height
prop.
16.03.2019.
Fixed
- Fixed type definitions #68.
12.11.2018.
Added
- Added param to
onAnimationStart
andonAnimationEnd
callbacks, it is a object containingnewHeight
value in pixels.
03.10.2018.
Changed
- Removed
@types/react
fromoptionalDependencies
#62.
26.09.2018.
Fixed
- Fixed #61 - omitted
onAnimationStart
andonAnimationEnd
from being passed to the DOM element directly.
15.08.2018.
Refactored
- Added
isPercentage
helper function.
12.07.2018.
Fixed
- Fixed small bug introduced with 2.0.0 - In
componentDidMount
,this.state
was used instead ofprevState
- Content is not being hidden if set height is
auto
11.07.2018.
Fixed
- Fixed type script definitions file
20.05.2018.
Changed
- Replaced
componentWillReceiveProps
bycomponentDidUpdate
to address changes introduces with React v16.3
20.05.2018.
Changed
- Enabled react v16.3+ in peer dependencies until react-animate-height v2 is out
20.05.2018.
Changed
- Moved helpers outside of component to make component lighter
- Updated few dependencies
21.04.2018.
Added
- Added
delay
prop, kudos to @quagliero #51 - Changelog
30.03.2018.
Fixed
animateOpacity
prop was passed directly to thediv
element, omitted it
30.03.2018.
Added
animateOpacity
prop which fades content in or out depending on animation direction
Changed
- Removed unused vendor prefixes for
translate
For changes prior version 1.0.0 please check the commit list.