diff --git a/src/nextjournal/clerk/render/navbar.cljs b/src/nextjournal/clerk/render/navbar.cljs index 183bd789b..3dada1142 100644 --- a/src/nextjournal/clerk/render/navbar.cljs +++ b/src/nextjournal/clerk/render/navbar.cljs @@ -40,6 +40,7 @@ [_ hash] (some-> search (.split "#"))] (when (or (and search hash (= path-name current-path-name)) anchor-only?) (let [anchor (if anchor-only? path-name (str "#" hash))] + (.stopPropagation event) (.preventDefault event) (when set-hash? (.pushState js/history #js {} "" anchor))