Fix autocomplete to dismiss after selecting

This commit is contained in:
Andrew Miner
2015-01-10 10:52:46 -08:00
parent cbe836086a
commit 634dec0ee8
@@ -58,7 +58,7 @@ module.exports = class InventoryController extends BaseController
func = =>
@onNameFieldChanged()
@onAddButtonClicked()
@$nameField.autocomplete 'search'
@$nameField.blur()
setTimeout func, 10 # needed to allow the autocomplete to finish
return true