react-redux-toastr
Advanced tools
Comparing version 3.6.3 to 3.6.4
{ | ||
"name": "react-redux-toastr", | ||
"version": "3.6.3", | ||
"version": "3.6.4", | ||
"description": "react-redux-toastr is a React toastr message implemented with Redux", | ||
@@ -9,2 +9,3 @@ "main": "lib/index.js", | ||
"start": "better-npm-run dev-server", | ||
"dev_win": "NODE_ENV=development NODE_PORT=3000 ./node_modules/.bin/webpack-dev-server --hot --inline --config build/webpack.config.js", | ||
"build": "better-npm-run build && npm run less && npm run less:m", | ||
@@ -11,0 +12,0 @@ "less": "lessc src/less/index.less --autoprefix=\"last 2 versions\" lib/css/react-redux-toastr.css", |
@@ -20,8 +20,5 @@ import React, {Component} from 'react'; | ||
*/ | ||
const end = () => { | ||
CSSCore.removeClass(this.toastrButton, 'active'); | ||
if (this.props.onClick) { | ||
this.props.onClick && this.props.onClick(); | ||
} | ||
}; | ||
// Untill I found out why stoppropagation is not working I will remove the onClick from the animationend. | ||
this.props.onClick(); | ||
const end = () => CSSCore.removeClass(this.toastrButton, 'active'); | ||
onCSSTransitionEnd(this.toastrButton, end); | ||
@@ -28,0 +25,0 @@ }; |
@@ -89,2 +89,4 @@ import ReactTransitionEvents from 'react/lib/ReactTransitionEvents'; | ||
const runOnce = (e) => { | ||
// stopPropagation is not working in IE11 and Edge, the transitionend from the Button.js is waiting | ||
// on the confirm animation to end first and not the Button.js | ||
e.stopPropagation(); | ||
@@ -91,0 +93,0 @@ callback && callback(e); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96360
1743