From af1273a1ec89d08b03f6ab2b6d70f7577886c3da Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Tue, 10 May 2016 22:46:26 +1000 Subject: [PATCH] 0.0.13 --- dist-modules/AccordionItem/index.js | 3 +-- dist/react-sanfona.js | 6 ++++-- package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dist-modules/AccordionItem/index.js b/dist-modules/AccordionItem/index.js index c24d3aa..cb2438d 100644 --- a/dist-modules/AccordionItem/index.js +++ b/dist-modules/AccordionItem/index.js @@ -67,7 +67,6 @@ var AccordionItem = function (_Component) { value: function componentDidMount() { var _this2 = this; - this.setMaxHeight(); // allow overflow for absolute positioned elements inside // the item body, but only after animation is complete _reactDom2.default.findDOMNode(this).addEventListener('transitionend', function () { @@ -148,7 +147,7 @@ var AccordionItem = function (_Component) { key: 'getProps', value: function getProps() { var props = { - className: (0, _classnames2.default)(['react-sanfona-item', this.props.className, { 'react-sanfona-item-expanded': this.props.expanded }, _defineProperty({}, this.props.expandedClassName, this.props.expanded)]), + className: (0, _classnames2.default)('react-sanfona-item', this.props.className, { 'react-sanfona-item-expanded': this.props.expanded }, this.props.expandedClassName && _defineProperty({}, this.props.expandedClassName, this.props.expanded)), role: 'tabpanel', style: this.props.style }; diff --git a/dist/react-sanfona.js b/dist/react-sanfona.js index 33be68d..67a384f 100644 --- a/dist/react-sanfona.js +++ b/dist/react-sanfona.js @@ -410,6 +410,9 @@ return /******/ (function(modules) { // webpackBootstrap var queueIndex = -1; function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); @@ -19730,7 +19733,6 @@ return /******/ (function(modules) { // webpackBootstrap value: function componentDidMount() { var _this2 = this; - this.setMaxHeight(); // allow overflow for absolute positioned elements inside // the item body, but only after animation is complete _reactDom2.default.findDOMNode(this).addEventListener('transitionend', function () { @@ -19811,7 +19813,7 @@ return /******/ (function(modules) { // webpackBootstrap key: 'getProps', value: function getProps() { var props = { - className: (0, _classnames2.default)(['react-sanfona-item', this.props.className, { 'react-sanfona-item-expanded': this.props.expanded }, _defineProperty({}, this.props.expandedClassName, this.props.expanded)]), + className: (0, _classnames2.default)('react-sanfona-item', this.props.className, { 'react-sanfona-item-expanded': this.props.expanded }, this.props.expandedClassName && _defineProperty({}, this.props.expandedClassName, this.props.expanded)), role: 'tabpanel', style: this.props.style }; diff --git a/package.json b/package.json index 92f728c..cbf5ced 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-sanfona", - "version": "0.0.12", + "version": "0.0.13", "description": "React accessible accordion component", "main": "./dist-modules/index.js", "scripts": {