Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 3.47 KB

CHANGELOG.md

File metadata and controls

85 lines (61 loc) · 3.47 KB

Changelog

next

  • 🎉 Feature Add support for ARIA and data attributes

3.5.0

September 3, 2018

  • 🔩 New Add transition prop
  • 🎉 Enhancement Use Jest for unit tests
  • 🎉 Enhancement Add knobs to the stories

3.4.0

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

3.3.2

July 05, 2018

  • 🐛 Bugfix Added nullcheck to make sure we wont try to set style on nonexisting content

3.3.1

July 05, 2018

  • 🐛 Bugfix Check if element target equals content on transition end

3.3.0

July 04, 2018

  • 🎉 Enhancement Setting visibility: hidden when collapse is closed to prevent screenreaders from reading the content

3.1.0

Nov 15, 2017

  • 🔩 New Add prettier-eslint 💅
  • 🔩 New Support react 15.x || 16.x 🕺🏼 . Solving #14
  • 🎉 Enhancement Upgrade storybook 🙏

3.0.2

May 04, 2017

  • 🐛 Bugfix Accessing PropTypes from 'prop-types' package instead of main React package. React.PropTypes will be deprecated in React 15.5

3.0.1

Apr 30, 2017

  • 🐛 Bugfix When isOpen={true}, set the overflow: visible after the component mounts to prevent cutting off content that may overflow outside the flow of height: auto (i.e. child content with position: relative and grandchildren with position: absolute may get cut off).

3.0.0

Apr 7, 2017

  • 🎉 Feature added onRest callback. The callback is triggered when your transition on height (specified in className) is done.
  • 💥 Breaking Remove onTransitionEnd callback. Please use onRest instead.

2.1.0

Apr 7, 2017

  • 🎉 Feature added onTransitionEnd callback that gets called after the expand/collapse animation has finished

2.0.2

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.

2.0.1

Apr 3, 2017

  • 🎉 Feature Setup tests
  • 🎉 Feature Do not require children property

2.0.0

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.

1.0.0

Mar 28, 2017

  • 🔩 New Created Collapse component

Examples

  • 🔩 New
  • 🎉 Enhancement
  • 🐛 Bugfix
  • 💥 Breaking