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
This commit is contained in:
lilia 2015-07-08 12:47:01 -07:00
parent cfc3b8e6a5
commit 1a82a12a30

View file

@ -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',