Browse Source

fix: search modal isn't closed after choosing a recent page

Junyi Du 3 years ago
parent
commit
fc5a40acb9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/search.cljs

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

@@ -275,7 +275,8 @@
                             (search-handler/search (state/get-current-repo) q opts)
                             (search-handler/search (state/get-current-repo) q))))
 
-                      nil))
+                      nil)
+                    (state/close-modal!))
        :on-shift-chosen (fn [{:keys [type data]}]
                           (case type
                             :page