          [:div.not-finding {:class "not-finding"}
           "Can't find what you're looking for? "
           [:a.search-feedback
-           {:href (str "/search-feedback" (when text (str "?query=" (util/url-encode text))))}
+           {:href (str "/search-feedback"
+                       (when ac-text (str "?query=" (util/url-encode ac-text))))}
            "Help make ClojureDocs better"]
           "."]
          (om/build $ac-results app {:init-state {:action-ch action-ch}})]))))

  (:require [om.core :as om :include-macros true]
            [dommy.core :as dommy]
            [cljs.core.async :as async
             :refer [<! >! chan close! sliding-buffer put! alts! alts!! timeout pipe mult tap]]
            [clojuredocs.ajax :refer [ajax]]
            [clojuredocs.anim :as anim]
            [clojure.string :as str]

                ($ac-entry res)])
             ac-results))]))))

(defn $quick-lookup-widget
  [{:keys [highlighted-index ac-results ac-text search-loading? results-empty?]
    :or {highlighted-index 0}
