                       (swap! selected-row inc)
 
                       "Enter"
-                      (do
+                      (when @selected
                         (popovers/close!)
                         (case @selected-column
                           0 (dispatch [:add-tag-to-thread

                        vec))
            selected (reaction (get-in [@tags @users] [@selected-column @selected-row]))]
        (run!
          (->> (get (mapv (comp dec count) [@tags @users]) @selected-column)
              (min @selected-row)
              (reset! selected-row)))
        [:div.add-mention-popup
         [:input.search
          {:placeholder "Search for tag/user"
           :auto-focus true
           :value @search-query
           :on-change (fn [e] (reset! search-query

                    (.stopPropagation e)
                    (case k
                      ("ArrowRight" "ArrowLeft")
                      (swap! selected-column (comp #(mod % 2) inc))

                      "ArrowUp"
                      (swap! selected-row (comp (partial max 0) dec))
