Skip to content

Commit

Permalink
lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeharu Oshida committed Sep 17, 2019
1 parent d04e812 commit 60d6253
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/components/Notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ function (_React$Component) {
n.onshow = function (e) {
_this3.props.onShow(e, opt.tag);

setTimeout(function () {
_this3.close(n);
}, _this3.props.timeout);
if (_this3.props.timeout > 0) {
setTimeout(function () {
_this3.close(n);
}, _this3.props.timeout);
}
};

n.onclick = function (e) {
Expand Down

0 comments on commit 60d6253

Please sign in to comment.