Clear search results when unmounting Picker
parent
c3dca431ef
commit
87d3228d0d
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue