Clear search results when unmounting Picker

exclude-unsupported-native-emojis
Etienne Lemay 2016-07-18 14:42:21 -04:00
parent c3dca431ef
commit 87d3228d0d
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ export default class Picker extends React.Component {
} }
componentWillUnmount() { componentWillUnmount() {
SEARCH_CATEGORY.emojis = null
clearTimeout(this.leaveTimeout) clearTimeout(this.leaveTimeout)
clearTimeout(this.firstRenderTimeout) clearTimeout(this.firstRenderTimeout)
} }