Socket
Socket
Sign inDemoInstall

react-redux-toastr

Package Overview
Dependencies
18
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.6.1 to 7.6.2

21

lib/ToastrBox.js

@@ -66,2 +66,8 @@ "use strict";

_defineProperty(_assertThisInitialized(_this), "handlePressEnterOrSpaceKeyCloseButton", function (e) {
if (e.key === ' ' || e.key === 'enter') {
_this.handleClickCloseButton(e);
}
});
_defineProperty(_assertThisInitialized(_this), "handleClickToastr", function () {

@@ -203,9 +209,2 @@ var _this$props$item$opti = _this.props.item.options,

}, {
key: "handlePressEnterOrSpaceKeyCloseButton",
value: function handlePressEnterOrSpaceKeyCloseButton(e) {
if (e.key === ' ' || e.key === 'enter') {
this.handleClickCloseButton(e);
}
}
}, {
key: "renderSubComponent",

@@ -372,3 +371,3 @@ value: function renderSubComponent() {

this._setTransition(true);
this._setTransition(true, false);

@@ -383,2 +382,3 @@ (0, _utils.onCSSTransitionEnd)(this.toastrBoxElement, this._onAnimationComplete);

var autoRemove = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var animationType = hide ? this.transitionOut : this.transitionIn;

@@ -393,3 +393,6 @@

if (this.toastrBoxElement) {
(0, _utils.onCSSTransitionEnd)(this.toastrBoxElement, onEndListener);
if (autoRemove) {
(0, _utils.onCSSTransitionEnd)(this.toastrBoxElement, onEndListener);
}
this.toastrBoxElement.classList.add(animationType);

@@ -396,0 +399,0 @@ }

{
"name": "react-redux-toastr",
"version": "7.6.1",
"version": "7.6.2",
"description": "react-redux-toastr is a React toastr message implemented with Redux",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -108,3 +108,3 @@ import React, {isValidElement} from 'react'; // eslint-disable-line no-unused-vars

handlePressEnterOrSpaceKeyCloseButton(e) {
handlePressEnterOrSpaceKeyCloseButton = (e) => {
if (e.key === ' ' || e.key === 'enter') {

@@ -326,3 +326,3 @@ this.handleClickCloseButton(e);

this._setIsHiding(true);
this._setTransition(true);
this._setTransition(true, false);
onCSSTransitionEnd(this.toastrBoxElement, this._onAnimationComplete);

@@ -332,3 +332,3 @@ }

_setTransition(hide) {
_setTransition(hide, autoRemove = true) {
const animationType = hide ? this.transitionOut : this.transitionIn;

@@ -343,3 +343,5 @@

if (this.toastrBoxElement) {
onCSSTransitionEnd(this.toastrBoxElement, onEndListener);
if (autoRemove) {
onCSSTransitionEnd(this.toastrBoxElement, onEndListener);
}
this.toastrBoxElement.classList.add(animationType);

@@ -346,0 +348,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc