Skip to content

Commit

Permalink
release 1.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Oct 8, 2017
1 parent cd81b7d commit 3cb6545
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions lib/rodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* ===============================
* Rodal v1.5.5 http://rodal.cn
* Rodal v1.5.6 http://rodal.cn
* =============================== */

var _react = require('react');
Expand Down Expand Up @@ -84,10 +84,9 @@ var Rodal = function (_React$Component) {
_this.el.focus();
}

var onAnimationEnd = _this.props.onAnimationEnd;
if (event.target === _this.el) {
var onAnimationEnd = _this.props.onAnimationEnd;


if (event.target == _this.el) {
onAnimationEnd && onAnimationEnd();
}
}, _temp), _possibleConstructorReturn(_this, _ret);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rodal",
"version": "1.5.5",
"version": "1.5.6",
"description": "A React modal with animations.",
"main": "lib/rodal.js",
"devDependencies": {
Expand Down
7 changes: 3 additions & 4 deletions src/rodal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* ===============================
* Rodal v1.5.5 http://rodal.cn
* Rodal v1.5.6 https://chenjiahan.github.com/rodal
* =============================== */

import React from 'react';
Expand Down Expand Up @@ -112,9 +112,8 @@ class Rodal extends React.Component {
this.el.focus();
}

const { onAnimationEnd } = this.props;

if (event.target == this.el) {
if (event.target === this.el) {
const { onAnimationEnd } = this.props;
onAnimationEnd && onAnimationEnd();
}
}
Expand Down

0 comments on commit 3cb6545

Please sign in to comment.