     if not filteredData?
       message.text = @options.loadingMessage
     else if searchTerm.length < @options.minLength
-      message.text = hx.userFacingText.format(@options.pleaseEnterMinCharactersMessage, { minLength: options.minLength })
+      message.text = hx.userFacingText.format(@options.pleaseEnterMinCharactersMessage, { minLength: @options.minLength })
     else if (searchTerm.length > 0 or @options.showAll) and filteredData.length is 0
       if @options.trimTrailingSpaces and _.input.value().lastIndexOf(' ') is _.input.value().length - 1
         trimAndReload = true

    loading: 'Loading...',
    noResultsFound: 'No results found',
    otherResults: 'Other Results',
    pleaseEnterMinCharacters: 'Please enter $minLength or more characters'
  }
})


        (elem, item) -> hx.select(elem).text(item)

      @options.placeholder ?= if @options.minLength > 0
        hx.userFacingText.format(@options.minCharactersMessage, { minLength: @options.minLength })

      # create input and menu objects
      input = hx.select @selector
