next
- 🎉 Feature Add support for ARIA and data attributes
September 3, 2018
- 🔩 New Add transition prop
- 🎉 Enhancement Use Jest for unit tests
- 🎉 Enhancement Add knobs to the stories
August 31, 2018
- 🎉 Enhancement Handle the style changes manually when React can just do this as part of its rendering. Moved the style properties to the state and just uses setState to update them. Changed the test so the actual component styles are checked when they are updated.
- 🎉 Enhancement PureComponent is more efficient than Component so changed it to that
- 🎉 Enhancement Added a default className — would be nice not to have to pass one if you just want to use the default
- 🐛 Bugfix All Component constructors should pass the props through to the super
July 05, 2018
- 🐛 Bugfix Added nullcheck to make sure we wont try to set style on nonexisting content
July 05, 2018
- 🐛 Bugfix Check if element target equals content on transition end
July 04, 2018
- 🎉 Enhancement Setting
visibility: hidden
when collapse is closed to prevent screenreaders from reading the content
Nov 15, 2017
- 🔩 New Add prettier-eslint 💅
- 🔩 New Support react 15.x || 16.x 🕺🏼 . Solving #14
- 🎉 Enhancement Upgrade storybook 🙏
May 04, 2017
- 🐛 Bugfix Accessing PropTypes from 'prop-types' package instead of main React package. React.PropTypes will be deprecated in React 15.5
Apr 30, 2017
- 🐛 Bugfix When
isOpen={true}
, set theoverflow: visible
after the component mounts to prevent cutting off content that may overflow outside the flow ofheight: auto
(i.e. child content withposition: relative
and grandchildren withposition: absolute
may get cut off).
Apr 7, 2017
- 🎉 Feature added
onRest
callback. The callback is triggered when your transition onheight
(specified inclassName
) is done. - 💥 Breaking Remove
onTransitionEnd
callback. Please useonRest
instead.
Apr 7, 2017
- 🎉 Feature added
onTransitionEnd
callback that gets called after the expand/collapse animation has finished
Apr 5, 2017
- 🐛 Bugfix Using setTimeout(fn, 0) to ensure correct pixelheight is set before transition (back) starts. This ensures we are not transitioning back from
auto
. Ref: http://stackoverflow.com/questions/779379/why-is-settimeoutfn-0-sometimes-useful - 🐛 Bugfix Checking if content is set before accessing content in requestAnimationFrame callback. This fixes a bug where
this.content
was null initially when navigating back to a page using react-css-collapse you had been to before.
Apr 3, 2017
- 🎉 Feature Setup tests
- 🎉 Feature Do not require children property
Mar 29, 2017
- 🎉 Feature Set initial height without transition on mount if collapse is open
- 💥 Breaking Remove style property from collapse. We had to remove this property to prevent conflicts with crucial style properties used in the component and to set initial height without transition on mount when collapse is open.
Mar 28, 2017
- 🔩 New Created
Collapse
component
- 🔩 New
- 🎉 Enhancement
- 🐛 Bugfix
- 💥 Breaking