From 47a99507597fbd5d5ad7da4a55f37683e176688b Mon Sep 17 00:00:00 2001 From: davidfernandezperrino Date: Thu, 31 Mar 2016 18:20:19 +0200 Subject: [PATCH 1/2] Update Notice.jsx If you have several notices with different times, this line was making not to start the timer of each notification until one of them has cleared out. With this modification each notification follows its own timer and closes when it finishes. Thanks for your work! --- src/Notice.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Notice.jsx b/src/Notice.jsx index 3347350..9e0afef 100644 --- a/src/Notice.jsx +++ b/src/Notice.jsx @@ -20,7 +20,6 @@ const Notice = React.createClass({ }, componentDidMount() { - this.clearCloseTimer(); if (this.props.duration) { this.closeTimer = setTimeout(()=> { this.close(); From 55e413858c2a848cc56394a44fd07a2399a322cf Mon Sep 17 00:00:00 2001 From: davidfernandezperrino Date: Thu, 31 Mar 2016 19:19:17 +0200 Subject: [PATCH 2/2] Update Notice.jsx --- src/Notice.jsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Notice.jsx b/src/Notice.jsx index 9e0afef..43a3b27 100644 --- a/src/Notice.jsx +++ b/src/Notice.jsx @@ -27,10 +27,6 @@ const Notice = React.createClass({ } }, - componentDidUpdate() { - this.componentDidMount(); - }, - componentWillUnmount() { this.clearCloseTimer(); },