{{frost-text
  class='frost-autocomplete-text'
  ariaActiveDescendant=ariaActiveDescendant
  ariaAutocomplete='list'
  ariaExpanded=true
  ariaMultiselectable=false
  ariaOwns='frost-select-list'
  hook=(concat hook '-autocompleteText')
  onInput=(action 'handleInput')
  onKeyDown=(action 'handleKeyDown')
  onKeyPress=(action 'handleKeyPress')
  onClear=(action 'handleClear')
  role='combobox'
  value=filter
  disabled=disabled
  autofocus=autofocus
  placeholder=placeholder
  tabIndex=computedTabIndex
  class=inputClass
  autocomplete='off'
}}

{{#if _opened}}
  {{component 'frost-autocomplete-dropdown'
    jQueryElement=jQueryElement
    filter=filter
    filterType=filterType
    hook=(concat hook '-autocompleteDropdown')
    items=items
    focusedIndex=focusedIndex
    onFocusIndex=(action 'focusIndex')
    onSelect=(action 'selectItem')
    onClose=(action 'closeDropDown')
    selectedValue=internalSelectedItem.value
    wrapLabels=wrapLabels
    isLoading=isLoading
    error=error
  }}
{{/if}}
