       if e.keyCode in [keys.UP, keys.DOWN]
         console.log 'up or down pressed'
 
-    if e.keyCode is keys.BACKSPACE and @state.showList is no
+    if e.keyCode is keys.BACKSPACE and @state.current is ''
       do e.preventDefault
-      __ref = @state.selectedSuggestions[@state.selectedSuggestions.length - 1].id
+      __ref = @state.selectedSuggestions[@state.selectedSuggestions.length - 1]?.id
       @_spliceSuggestion __ref
 
   render: ->

  ###
  _changeSelection: ->

  _spliceSuggestion: (id) ->
    return unless id


keys = require '../../helpers/keyboard'
{isEmpty} = require 'lodash'

###
# ImputSuggestions component
#
# @var object state
###
class InputSuggestions extends Component
  constructor: ->
    @state =
