diff --git a/modules/reitit-frontend/src/reitit/frontend/history.cljs b/modules/reitit-frontend/src/reitit/frontend/history.cljs index 35d8a091..2fd5da1e 100644 --- a/modules/reitit-frontend/src/reitit/frontend/history.cljs +++ b/modules/reitit-frontend/src/reitit/frontend/history.cljs @@ -2,7 +2,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 @@ -75,7 +76,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))