react-crouton
Advanced tools
Comparing version 0.2.4 to 0.2.5
20
index.js
@@ -123,13 +123,19 @@ var React = require('react'); | ||
var autoMiss = nextProps.autoMiss ? (buttons ? false : true) : nextProps.autoMiss; | ||
this.setState({ | ||
hidden: nextProps.hidden, | ||
buttons: buttons, | ||
message: message, | ||
type: nextProps.type | ||
}); | ||
if (autoMiss && !nextProps.hidden) { | ||
var ttd = setTimeout(this.dismiss, nextProps.timeout || this.props.timeout); | ||
this.dismiss(); | ||
this.setState({ | ||
ttd: ttd | ||
ttd: ttd, | ||
hidden: nextProps.hidden, | ||
buttons: buttons, | ||
message: message, | ||
type: nextProps.type | ||
}); | ||
} else { | ||
this.setState({ | ||
hidden: nextProps.hidden, | ||
buttons: buttons, | ||
message: message, | ||
type: nextProps.type | ||
}); | ||
} | ||
@@ -136,0 +142,0 @@ }, |
{ | ||
"name": "react-crouton", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A message component for reactjs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20649
496