diff --git a/lib/components/Notification.js b/lib/components/Notification.js index 4422a53..1102ca3 100644 --- a/lib/components/Notification.js +++ b/lib/components/Notification.js @@ -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) {