Skip to content

Commit 60d6253

Browse files
author
Takeharu Oshida
committed
lib
1 parent d04e812 commit 60d6253

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/components/Notification.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,11 @@ function (_React$Component) {
160160
n.onshow = function (e) {
161161
_this3.props.onShow(e, opt.tag);
162162

163-
setTimeout(function () {
164-
_this3.close(n);
165-
}, _this3.props.timeout);
163+
if (_this3.props.timeout > 0) {
164+
setTimeout(function () {
165+
_this3.close(n);
166+
}, _this3.props.timeout);
167+
}
166168
};
167169

168170
n.onclick = function (e) {

0 commit comments

Comments
 (0)