                        (put! search-chan {:query query})))}]
           (if (seq @search-query)
             [:div.action.clear {:on-click (fn []
-                                            (put! search-chan {:query ""})
-                                            (store/set-search-query! ""))}]
+                                            (exit-search!))}]
             [:div.action.search])])})))

  (let [open-group-id (subscribe [:open-group-id])
        search-query (subscribe [:search-query])
        kill-chan (chan)
        search-chan (chan)]
    (r/create-class
      {:component-will-mount
       (fn []

                   (let [{:keys [query]} v]
                     (store/set-search-results! query {})
                     (if (string/blank? query)
                       (exit-search!)
                       (do (dispatch! :search-history [query @open-group-id])
                           (routes/go-to! (routes/search-page-path {:group-id @open-group-id
                                                                    :query query})))))
