fix: "Search in page" transforms to "Global search"

close #1767
This commit is contained in:
Tienson Qin
2021-05-13 17:52:57 +08:00
parent 6deb22549c
commit e93e4cd1d8
2 changed files with 11 additions and 8 deletions

View File

@@ -283,7 +283,7 @@
(js/clearTimeout @search-timeout))
(let [value (util/evalue e)]
(if (string/blank? value)
(search-handler/clear-search!)
(search-handler/clear-search! false)
(let [search-mode (state/get-search-mode)
opts (if (= :page search-mode)
(let [current-page (or (state/get-current-page)