From 1a82a12a309e7cd09616ecd96bbdd64c71de7398 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 8 Jul 2015 12:47:01 -0700 Subject: [PATCH] Use input instead of keyup/change events In lieu of a click event, the change event was being fired when clicking out of the search input. The input event seems to be what we actually want. Fixes #273 --- js/views/recipients_input_view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/views/recipients_input_view.js b/js/views/recipients_input_view.js index 62bf69754..62689f58a 100644 --- a/js/views/recipients_input_view.js +++ b/js/views/recipients_input_view.js @@ -100,8 +100,7 @@ }, events: { - 'change input.search': 'filterContacts', - 'keyup input.search': 'filterContacts', + 'input input.search': 'filterContacts', 'select .new-contact': 'addNewRecipient', 'select .contacts': 'addRecipient', 'remove .recipient': 'removeRecipient',