mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
Merge remote-tracking branch 'upstream/master' into whiteboards
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
[{:keys [to path-params query-params push]
|
||||
:or {push true}}]
|
||||
(let [route-fn (if push rfe/push-state rfe/replace-state)]
|
||||
(state/save-scroll-position! (util/scroll-top))
|
||||
(route-fn to path-params query-params))
|
||||
;; force return nil for usage in render phase of React
|
||||
nil)
|
||||
@@ -131,9 +130,10 @@
|
||||
(update-page-label! route)
|
||||
(if-let [anchor (get-in route [:query-params :anchor])]
|
||||
(jump-to-anchor! anchor)
|
||||
(util/scroll-to (util/app-scroll-container-node)
|
||||
(state/get-saved-scroll-position)
|
||||
false))))
|
||||
(js/setTimeout #(util/scroll-to (util/app-scroll-container-node)
|
||||
(state/get-saved-scroll-position)
|
||||
false)
|
||||
100))))
|
||||
|
||||
(defn go-to-search!
|
||||
[search-mode]
|
||||
|
||||
Reference in New Issue
Block a user