From 87d3228d0d0e674843877f5544753532ae919af3 Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Mon, 18 Jul 2016 14:42:21 -0400 Subject: [PATCH] Clear search results when unmounting Picker --- src/components/picker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/picker.js b/src/components/picker.js index 5bf8c3a..6483ee3 100644 --- a/src/components/picker.js +++ b/src/components/picker.js @@ -45,6 +45,8 @@ export default class Picker extends React.Component { } componentWillUnmount() { + SEARCH_CATEGORY.emojis = null + clearTimeout(this.leaveTimeout) clearTimeout(this.firstRenderTimeout) }