Skip to content

Commit

Permalink
Merge pull request #75 from psimyn/bugfixes
Browse files Browse the repository at this point in the history
don't set initial max-height for item-body or content can overflow
  • Loading branch information
psimyn committed May 10, 2016
2 parents 8426c27 + f0928d6 commit e35083c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/AccordionItem/index.jsx
Expand Up @@ -23,7 +23,6 @@ export default class AccordionItem extends Component {
}

componentDidMount() {
this.setMaxHeight();
// allow overflow for absolute positioned elements inside
// the item body, but only after animation is complete
ReactDOM.findDOMNode(this).addEventListener('transitionend', () => {
Expand Down Expand Up @@ -90,12 +89,12 @@ export default class AccordionItem extends Component {

getProps() {
var props = {
className: className([
className: className(
'react-sanfona-item',
this.props.className,
{ 'react-sanfona-item-expanded': this.props.expanded },
{ [this.props.expandedClassName]: this.props.expanded }
]),
this.props.expandedClassName && { [this.props.expandedClassName]: this.props.expanded }
),
role: 'tabpanel',
style: this.props.style
};
Expand Down

0 comments on commit e35083c

Please sign in to comment.