diff --git a/modules/reitit-frontend/src/reitit/frontend/history.cljs b/modules/reitit-frontend/src/reitit/frontend/history.cljs index 4ec295fa..97be00c6 100644 --- a/modules/reitit-frontend/src/reitit/frontend/history.cljs +++ b/modules/reitit-frontend/src/reitit/frontend/history.cljs @@ -4,7 +4,8 @@ (:require [reitit.core :as reitit] [reitit.core :as r] [reitit.frontend :as rf] - [goog.events :as gevents]) + [goog.events :as gevents] + [goog.dom :as gdom]) (:import goog.Uri)) (defprotocol History @@ -77,7 +78,8 @@ (not (contains? #{"_blank" "self"} (.getAttribute el "target"))) ;; Left button (= 0 (.-button e)) - (reitit/match-by-path router (.getPath uri))) + (reitit/match-by-path router (.getPath uri)) + (not (gdom/getAncestor el (fn [node] (.isContentEditable node))))) (.preventDefault e) (let [path (str (.getPath uri) (if (seq (.getQuery uri))