Merge pull request #562 from Klathmon/fix-snackbar-timeout

Fix hanging timeout on <Snackbar/> element
old
Javi Velasco 2016-06-16 20:16:57 +02:00 committed by GitHub
commit 375b6fec08
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ const factory = (Overlay, Button) => {
}
}
componentWillUnmount () {
clearTimeout(this.curTimeout);
}
render () {
const {action, active, icon, label, onClick, theme, type } = this.props;
const className = classnames([theme.snackbar, theme[type]], {