Browse Source

Close modal before opening more results

Fix #5794, fix #4375
Gabriel Horner 3 years ago
parent
commit
f749da1417
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/components/search.cljs

+ 1 - 0
src/main/frontend/components/search.cljs

@@ -258,6 +258,7 @@
         [:a.text-sm.font-medium {:href (rfe/href :search {:q search-q})
                                  :on-click (fn []
                                              (when-not (string/blank? search-q)
+                                               (state/close-modal!)
                                                (search-handler/search (state/get-current-repo) search-q {:limit 1000
                                                                                                          :more? true})
                                                (search-handler/clear-search!)))}